Beat 100 💯 ✅ Easy solution
\nclass Solution {\n       public int minFlips(int a, int b, int c) {\n        int flipCount = 0;\n\n        while (a > 0 || b > 0 || c > 0) {\n            int 
```\nclass Solution {\n       public int minFlips(int a, int b, int c) {\n        int flipCount = 0;\n\n        while (a > 0 || b > 0 || c > 0) {\n            int aBit = a & 1;\n            int bBit = b & 1;\n            int cBit = c & 1;\n\n            if ((aBit | bBit) != cBit) {\n                if (aBit == bBit && aBit == 1) {\n                    flipCount += 2;\n                } else {\n                    flipCount++;\n                }\n            }\n\n            a = a >> 1;\n            b = b >> 1;\n            c = c >> 1;\n        }\n        return flipCount;\n    }\n}\n```\n\nThankyou upvote if helpful :)
[]