Skip to content

Commit 0761a2d

Browse files
committed
Runtime: 77 ms (Top 96.60%) | Memory: 13.8 MB (Top 57.97%)
1 parent 0ccc9fb commit 0761a2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 77 ms (Top 96.60%) | Memory: 13.8 MB (Top 57.97%)
12
class Solution:
23
def isPowerOfThree(self, n: int) -> bool:
3-
return round(log(n,3), 9) == round(log(n,3)) if n >= 1 else False
4+
return round(log(n,3), 9) == round(log(n,3)) if n >= 1 else False

0 commit comments

Comments
 (0)