题目:
![](https://i-blog.csdnimg.cn/direct/78a19584398e4894ba9c7caa38d85d21.png)
题解:
cpp
class Solution {
private:
static constexpr int BIG = 1 << 30;
public:
bool isPowerOfTwo(int n) {
return n > 0 && BIG % n == 0;
}
};