Leetcode 264. Ugly Number II
Find the n-th positive integer whose only prime factors are 2, 3, and 5 by efficiently generating the ordered sequence of such "ugly" numbers (typically via merging multiples of previous results to avoid duplicates and heavy factoring). Constraints: 1 ≤ n ≤ 1690.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.