n=1690 def nthUglyNumber(n): uglyNums = [1] curr = 2 while len(uglyNums)