1
# Runtime: 46 ms (Top 35.3%) | Memory: 16.23 MB (Top 61.5%)
2

3
import math
4

5

6
class Solution:
7
def isPowerOfFour(self, n: int) -> bool:
8

9
if n <= 0:
10
return False
11
return math.log(n, 4).is_integer()

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0