Python Elegant & Short | One-Line Math
Complexity\n- Time complexity: O(\log_2 {n})\n- Space complexity: O(1)\n\n# Code\n\nclass Solution:\n    def minFlips(self, a: int, b: int, c: int) -> int:\n   
# Complexity\n- Time complexity: $$O(\\log_2 {n})$$\n- Space complexity: $$O(1)$$\n\n# Code\n```\nclass Solution:\n    def minFlips(self, a: int, b: int, c: int) -> int:\n        return ((a | b) ^ c).bit_count() + (a & b & ((a | b) ^ c)).bit_count()\n```
['Math', 'Bit Manipulation', 'Python', 'Python3']