1
class Solution:
2
def isPowerOfThree(self, n: int) -> bool:
3
return round(log(n, 3), 9) == round(log(n, 3)) if n >= 1 else False

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0