C++ || O(1) || Clean code
c++\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n        int itr = 31, count = 0;\n        while (itr--) {\n            auto isCone = (c
```c++\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n        int itr = 31, count = 0;\n        while (itr--) {\n            auto isCone = (c >> itr) & 1;\n            auto isAone = (a >> itr) & 1;\n            auto isBone = (b >> itr) & 1;\n            if (isCone && !isAone && !isBone) count++;\n            else if (!isCone) {\n                if (isAone) count++;\n                if (isBone) count++;\n            }\n        }\n        return count;\n    }\n};\n```\n\n**For more solutions, check out this \uD83C\uDFC6  [GITHUB REPOSITORY](https://github.com/MuhtasimTanmoy/playground) with over 1500+ solutions.**
[]