【Leetcode】264. Ugly Number II

class Solution(object): def nthUglyNumber(self, n): """ 1, 2, 3, 4, 5, //6, 8, 9, 10, 12 the next ugly number is 6, how to find it? Intuitively , we multiply 2,3,5 to the ugly numbers appe
相關文章
相關標籤/搜索