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
.
Example:
Note:
1
is typically treated as an ugly number.n
does not exceed 1690.
Last updated
Write a program to find the n
-th ugly number.
Ugly numbers are positive numbers whose prime factors only include 2, 3, 5
.
Example:
Note:
1
is typically treated as an ugly number.
n
does not exceed 1690.
Last updated