【Leetcode】263. Ugly Number

class Solution1(object): def isUgly(self, num): """ If curr num has factor of 2 or 3 or 5, we divide it and finally the result whether 1 or not """ if num <= 1 :return False
相關文章
相關標籤/搜索