Java Simple Solution | Bit Manipulation
\n\nclass Solution {\n    public int minFlips(int a, int b, int c) {\n        int xor = (a|b)^c;\n        int res = 0;\n        while(xor!=0){\n            int 
```\n\nclass Solution {\n    public int minFlips(int a, int b, int c) {\n        int xor = (a|b)^c;\n        int res = 0;\n        while(xor!=0){\n            int mask = xor & -xor;\n            if((mask & c) > 0){\n                res++;\n            }else{\n                if((mask & a) > 0)\n                    res++;\n                if((mask & b) > 0)\n                    res++;\n            }\n            xor ^= mask;\n        }\n        return res;\n    }\n}\n\n```
[]