easy approach in c++, which beats 100%of users
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 flip=0;\n        while(a!=0 || b!=0 || c!=0){\n            if( (c&1)==1){\n                if((a&1)==0 && (b&1)==0){\n                        flip++;\n                }\n            }\n            else{\n                if((a&1)==1)\n                  flip++;\n\n                if((b&1)==1)\n                 flip++;\n            }\n            a>>=1;\n            b>>=1;\n            c>>=1;\n        }\n        return flip;\n        \n    }\n};\n```
['C++']