264. Ugly Number II
Medium
An ugly number is a positive integer whose prime factors are limited to 2
, 3
, and 5
.
Given an integer n
, return the nth
ugly number.
Example 1:
Example 2:
Constraints:
1 <= n <= 1690
解題
Runtime: 0 ms, faster than 100%
Memory Usage: 4.2 MB, less than 48.33%
Last updated