We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40113ee commit 6ceccf1Copy full SHA for 6ceccf1
342(b).cpp
@@ -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