Simple and Easy To Understand C++ Solution 🔥
\n\nclass Solution {\npublic:\n   int minFlips(int a, int b, int c) {\n\n        int cnt = 0;\n        int a1, b1, c1;\n        \n        while (a || b || c) {\
\n```\nclass Solution {\npublic:\n   int minFlips(int a, int b, int c) {\n\n        int cnt = 0;\n        int a1, b1, c1;\n        \n        while (a || b || c) {\n            a1 = a%2;\n            b1 = b%2;\n            c1 = c%2;\n            \n            if (c1 == 0) cnt += (a1 + b1);\n            else {\n                if (a1 + b1 == 0) ++cnt;\n            }\n        \n            a /= 2;\n            b /= 2;\n            c /= 2;\n        }\n        return cnt;\n   }\n};\n```
['C++']