【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
相关文章
相关标签/搜索