Simple Python
\nclass Solution(object):\n    def findComplement(self, num):\n        i = 1\n        while i <= num:\n            i = i << 1\n        return (i - 1) ^ num\n\n\
```\nclass Solution(object):\n    def findComplement(self, num):\n        i = 1\n        while i <= num:\n            i = i << 1\n        return (i - 1) ^ num\n```\n\nFYI: pomodoro timer helps to obtain higher time ROI:  [e-tomato.online](http://e-tomato.online)
[]