摘要:
Write a program to find then-th ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For example,1, 2, 3, 4, 5, 6, 8... 阅读全文
posted @ 2015-11-09 16:55
AprilCheny
阅读(3285)
评论(0)
推荐(0)
摘要:
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are som... 阅读全文
posted @ 2015-11-09 14:52
AprilCheny
阅读(279)
评论(0)
推荐(0)
摘要:
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i... 阅读全文
posted @ 2015-11-09 13:32
AprilCheny
阅读(155)
评论(0)
推荐(0)
摘要:
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n = 13,Return 6... 阅读全文
posted @ 2015-11-09 10:52
AprilCheny
阅读(136)
评论(0)
推荐(0)
摘要:
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.Credits:Special thanks to@tsf... 阅读全文
posted @ 2015-11-09 09:23
AprilCheny
阅读(237)
评论(0)
推荐(0)

浙公网安备 33010602011771号