Available question text
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.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 264. Ugly Number II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source