@@ -0,0 +1,398 @@
+class Solution:%0A    # @param %7Binteger%7D n%0A    # @return %7Bboolean%7D%0A    def isPowerOfTwo(self, n):%0A        return n %3E 0 and (n & (n -1) == 0)%0A        %0A    def aisPowerOfTwo(self, n):%0A        if n == 0:%0A            return False%0A        target = %22%7B0:b%7D%22.format(n)%0A        for idx in range(1, len(target)):%0A            if target%5Bidx%5D == '1':%0A                return False%0A        return True%0A            %0A

solve 231