Problem
Java
1
1 | class Solution { |
Submission Detail
- 1060 / 1060 test cases passed.
- Runtime: 1 ms, faster than 100.00% of Java online submissions for Power of Four.
- Memory Usage: 37 MB, less than 34.15% of Java online submissions for Power of Four.
Logarithm
1 | class Solution { |
Submission Detail
- 1060 / 1060 test cases passed.
- Runtime: 1 ms, faster than 100.00% of Java online submissions for Power of Four.
- Memory Usage: 36.9 MB, less than 45.20% of Java online submissions for Power of Four.
bit magic 1
Check if given number is power of 4 or not
1 | class Solution { |
Submission Detail
- 1060 / 1060 test cases passed.
- Runtime: 2 ms, faster than 28.69% of Java online submissions for Power of Four.
- Memory Usage: 38.6 MB, less than 13.38% of Java online submissions for Power of Four.
bit magic 2
Check if given number is power of 4 or not
1 | class Solution { |
Submission Detail
- 1060 / 1060 test cases passed.
- Runtime: 1 ms, faster than 100.00% of Java online submissions for Power of Four.
- Memory Usage: 38.8 MB, less than 8.34% of Java online submissions for Power of Four.