We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ccc9fb commit 0761a2dCopy full SHA for 0761a2d
scripts/algorithms/P/Power of Three/Power of Three.py
@@ -1,3 +1,4 @@
1
+// Runtime: 77 ms (Top 96.60%) | Memory: 13.8 MB (Top 57.97%)
2
class Solution:
3
def isPowerOfThree(self, n: int) -> bool:
- 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