← Flipkart questions

Generate n numbers with given k factors

Filed under Flipkart

Generate the first n numbers in ascending order that are formed strictly as products of a given set of k base prime or integer factors. Discuss multiple approaches including min-heap and multiple…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.