✅✅ Python One-Liner | Beats 94% ✅✅
Complexity\n- Time complexity:\nO(len(bin(n)))\n\n# Code\n\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        return [sum(1 if x == "1" a
# Complexity\n- Time complexity:\n$$O(len(bin(n)))$$\n\n# Code\n```\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        return [sum(1 if x == "1" and not i&1 else 0 for i, x in enumerate(bin(n)[2:][::-1])), sum(1 if x == "1" and i&1 else 0 for i, x in enumerate(bin(n)[2:][::-1]))]\n```
['Python3']