Java Bit
\nclass Solution {\n    public int minFlips(int a, int b, int c) {\n        int res = 0;\n        while (a != 0 || b != 0 || c != 0) {\n            int t = a & 
```\nclass Solution {\n    public int minFlips(int a, int b, int c) {\n        int res = 0;\n        while (a != 0 || b != 0 || c != 0) {\n            int t = a & 1;\n            int m = b & 1;\n            int n = c & 1;\n            if ((t | m) != n) {\n                if (n == 0) {\n                    if (t == 1) {\n                        res++;\n                    }\n                    if (m == 1) {\n                        res++;\n                    }\n                } else {\n                    res++;\n                }\n            }\n            a = a >> 1;\n            b = b >> 1;\n            c = c >> 1;\n        }\n        return res;\n    }\n}\n```
[]