<reponame>Ry4nW/python-wars<filename>binarysearch/checkPowerOfTwo.py<gh_stars>1-10
class Solution:
    def solve(self, n):
        return bin(n).count('1') == 1
        
class Solution:
    def solve(self, n):
        return bin(n).count('1') == 1