Available question text
Return the nth positive integer whose prime factors are all drawn from the given list primes (the generalized "super ugly numbers"). With n up to 1e5 and primes length up to 100, you must generate the sequence efficiently rather than testing each integer.
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 313. Super Ugly Number
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source