Ugly Number II
Medium
Heap / Priority Queue
Ugly numbers have only 2, 3 and 5 as prime factors (1 is ugly). Print the n-th ugly number.
Constraints
1 <= n <= 1690
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.