要求:判断3的幂不能用循环递归
思路:3的19
class Solution {
public:
bool isPowerOfThree(int n) {
return n>0&&1162261467%n==0;
}
};
要求:判断3的幂不能用循环递归
思路:3的19
class Solution {
public:
bool isPowerOfThree(int n) {
return n>0&&1162261467%n==0;
}
};