Alwaldend
Docs
Light
Dark
Auto
Docs
Misc
Leetcode submissions
2024-02-19 11:56:55 +0300 MSK
2024-02-19 11:56:55 +0300 MSK
Power of Two
Tags:
Generated
Leetcode_submission
Links
https://leetcode.com/submissions/detail/1179683573/
Code
class
Solution
:
def
isPowerOfTwo
(self, n: int)
->
bool:
return
n
>
0
and
n
&
(n
-
1
)
==
0