Python - Divide by 2 - Clean Code
\nclass Solution:\n    def baseNeg2(self, n: int) -> str:\n        result = []\n        \n        while n:\n            result.append(\'1\' if n & 1 else \'0\')
```\nclass Solution:\n    def baseNeg2(self, n: int) -> str:\n        result = []\n        \n        while n:\n            result.append(\'1\' if n & 1 else \'0\')\n            n = -(n >> 1)\n        \n        return \'\'.join(result[::-1]) if result else \'0\'\n```
[]