标签:col pow code bool int style span isp nbsp
1 class Solution 2 { 3 public: 4 bool isPowerOfFour(int num) 5 { 6 return (num > 0) && ((num & (-num)) == num) && (num % 3 == 1); 7 } 8 };
标签:col pow code bool int style span isp nbsp
原文地址:https://www.cnblogs.com/yuhong1103/p/12746247.html