摘要:
Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example: Input: n = 10 Outpu 阅读全文
posted @ 2019-10-21 23:50
CNoodle
阅读(149)
评论(0)
推荐(0)
摘要:
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. Example 阅读全文
posted @ 2019-10-21 13:47
CNoodle
阅读(139)
评论(0)
推荐(0)
摘要:
Given a positive integer n and you can do operations as follow: If n is even, replace n with n/2. If n is odd, you can replace n with either n + 1 or 阅读全文
posted @ 2019-10-21 13:28
CNoodle
阅读(143)
评论(0)
推荐(0)

浙公网安备 33010602011771号