class Solution {
public:
bool isPowerOfThree(int n) {
return n > 0 && 1162261467 % n == 0;
}
};
326 https://leetcode-cn.com/problems/power-of-three/
最新推荐文章于 2021-03-15 21:33:57 发布
class Solution {
public:
bool isPowerOfThree(int n) {
return n > 0 && 1162261467 % n == 0;
}
};