(self, n: int)
| 2 | #An integer n is a power of two, if there exists an integer x such that n == 2x. |
| 3 | |
| 4 | def isPowerOfTwo(self, n: int) -> bool: |
| 5 | return (n != 0) and ((n & (n - 1)) == 0) |
nothing calls this directly
no outgoing calls
no test coverage detected