Skip to content

Commit fe8862c

Browse files
committed
leetcode
1 parent b51f292 commit fe8862c

1 file changed

+6
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Solution {
2+
public:
3+
bool isPowerOfFour(int num) {
4+
return ( ( num>0 ) && ( (num-1) %3==0 ) && ( ( num&(num-1)) ==0 ) );
5+
}
6+
};

0 commit comments

Comments
 (0)