class Solution {
public:
bool isPowerOfThree(int n) {
return n > 0 && 1162261467 % n == 0;
}
};
326 https://leetcode-cn.com/problems/power-of-three/
最新推荐文章于 2025-05-28 23:39:14 发布
class Solution {
public:
bool isPowerOfThree(int n) {
return n > 0 && 1162261467 % n == 0;
}
};