P1:判断丑数(只包含质因子 2, 3, 5 的正整数)
用函数代替减少代码量
P2:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. P2:
P1:判断丑数(只包含质因子 2, 3, 5 的正整数)
用函数代替减少代码量
P2:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. P2: