Python Simple Solution Faster Than 99.49%
\t\n\tclass Solution:\n    def bitwiseComplement(self, n: int) -> int:\n        s=bin(n).replace(\'0b\',\'\')\n        t=\'\'\n        for i in s:\n            
\t```\n\tclass Solution:\n    def bitwiseComplement(self, n: int) -> int:\n        s=bin(n).replace(\'0b\',\'\')\n        t=\'\'\n        for i in s:\n            if i==\'0\':\n                t+=\'1\'\n            else:\n                t+=\'0\'\n        return int(t,2)\n```
['Python']