🏆🏆🏆C++ | neat and clean code | no need to think too much | beats 100%🔥🔥🔥
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n        int flips = 0;\n        while(a || b || c){\n            if(c & 1){\n                if(!(a&1) && !(b&1)){\n                    flips++;\n                }\n            }\n            else{\n                if(a & 1) flips++;\n                if(b & 1) flips++;\n            }\n            a = a>>1;\n            b = b>>1;\n            c = c>>1;\n        }\n        return flips;       \n    }\n};\n```
['Bit Manipulation', 'C++']