342. Power of Four
Last updated
Last updated
class Solution:
def isPowerOfFour(self, n: int) -> bool:
return n > 0 and (math.log10(n)/math.log10(4)).is_integer()class Solution:
def isPowerOfFour(self, n: int) -> bool:
return n > 0 and math.log(n,4).is_integer()