- 博客(2)
- 收藏
- 关注
原创 [LeetCode] Ugly Number II
Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequence of the first
2015-08-31 22:46:57
167
原创 [LeetCode] Ugly Number
Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is not ugly since it i
2015-08-31 22:39:20
131
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人