🏆C++ || Easy BIT
Code\n\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n        int ans=0;\n        for(long i=0;i<=30;i++){\n            long d1=a&1;\n    
# Code\n```\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n        int ans=0;\n        for(long i=0;i<=30;i++){\n            long d1=a&1;\n            long d2=b&1;\n            long d3=c&1;\n            if(d3==0) {\n                ans += d1+d2;\n            }\n            else {\n                if(d1==0 && d2==0)ans++;\n            }\n            a/=2;\n            b/=2;\n            c/=2;\n        }\n        return ans;\n    }\n};\n```\n![upvote (2).jpg](https://assets.leetcode.com/users/images/e6b75a65-a511-4672-bc71-2a29908cc1b5_1686114003.6189425.jpeg)\n\n
['Bit Manipulation', 'C++']