首页 > 其他 > 详细

[LeetCode] Strobogrammatic Number III 对称数之三

时间:2016-02-20 15:52:52      阅读:559      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!