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
最新推荐文章于 2019-03-11 14:13:29 发布