class Solution {
public:
bool isPowerOfFour(int num) {
float a=log(num)/log(4);
if(a-int(a)==0)
return true;
else
return false;
}
};
342. Power of Four
最新推荐文章于 2024-06-04 11:17:38 发布