def isPowerOfTwo(self, n):
        """
        Bit manipulation
        :type n: int
        :rtype: bool
        """
        if n <= 0:
            return False

        return n & (n-1) == 0
dataset/ETHPy150Open algorhythms/LeetCode/231 Power of Two.py/Solution.isPowerOfTwo/original