摘要:
No.7 Reverse IntegerReverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321反转数字:将对10整除和取余的结果逆置即可难点即细节:溢出。符号疑问:溢出的,怎么处理... 阅读全文
posted @ 2015-05-28 21:05
人生不酱油
阅读(174)
评论(0)
推荐(0)
摘要:
No.166 Fraction to Recurring DecimalGiven two integers representing the numerator and denominator of a fraction, return the fraction in string format.... 阅读全文
posted @ 2015-05-28 16:41
人生不酱油
阅读(197)
评论(0)
推荐(0)
摘要:
No.65 Valid NumberValidate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended fo... 阅读全文
posted @ 2015-05-28 14:09
人生不酱油
阅读(145)
评论(0)
推荐(0)

浙公网安备 33010602011771号