码迷,mamicode.com
首页 > 其他好文 > 详细

[LeetCode] Strobogrammatic Number III 对称数之三

时间:2016-02-20 15:55:09      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:

 

A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).

Write a function to count the total strobogrammatic numbers that exist in the range of low <= num <= high.

For example,
Given low = "50", high = "100", return 3. Because 69, 88, and 96 are three strobogrammatic numbers.

Note:
Because the range might be a large number, the low and high numbers are represented as string.

 

Show Tags
Show Similar Problems
 

 

[LeetCode] Strobogrammatic Number III 对称数之三

标签:

原文地址:http://www.cnblogs.com/grandyang/p/5203228.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!