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 3666524 commit fde6a7bCopy full SHA for fde6a7b
java/342-Power-of-Four.java
@@ -0,0 +1,6 @@
1
+class Solution {
2
+ public boolean isPowerOfFour(int n) {
3
+ double x = Math.log(n)/Math.log(4);
4
+ return x==(int)x;
5
+ }
6
+}
0 commit comments