Python 3 (50ms) | Beginner Naive Approach | String, Join & Replace
\nclass Solution:\n    def bitwiseComplement(self, n: int) -> int:\n        t=(str(bin(n).replace("0b", "")))\n        a="".join("1" if x==\'0\' else \'0\' for 
```\nclass Solution:\n    def bitwiseComplement(self, n: int) -> int:\n        t=(str(bin(n).replace("0b", "")))\n        a="".join("1" if x==\'0\' else \'0\' for x in t)\n        return int(a,2)\n```
['String', 'Python']