LeetCode 264: Ugly Number II
Problem Restatement We are given an integer n . Return the n th ugly number. An ugly number is a positive integer whose prime factors are limited to: 2, 3, 5 The sequence starts with: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, ... 1 is treated as an ugly number. The constraint is: 1 <= n <= 1690 The official examples include n = 10 -> 12...