[C++/Python] Simple bit manipulation
Python\n\n\nclass Solution:\n    def minFlips(self, a: int, b: int, c: int) -> int:\n        count=0\n        while(a or b or c):\n            bit_a,bit_b,bit_c
#### Python\n```\n\nclass Solution:\n    def minFlips(self, a: int, b: int, c: int) -> int:\n        count=0\n        while(a or b or c):\n            bit_a,bit_b,bit_c=a&1,b&1,c&1\n            if (bit_a|bit_b)!=bit_c:\n                if bit_a==1 and bit_b==1:\n                    count=count+2\n                else:\n                    count=count+1\n            a=a>>1\n            b=b>>1\n            c=c>>1\n        return count\n```\n\n### C++\n\n```\n\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n      int mask=1;\n      int count=0;\n      int bit_a,bit_b,bit_c;\n      while (a||b||c){\n        bit_a=a&1;\n        bit_b=b&1;\n        bit_c=c&1;\n        if ((bit_a|bit_b)!=bit_c){\n          if (bit_a & bit_b){\n            count=count+2;\n          }\n          else{\n            ++count;\n          }\n        }\n        a=a>>1;\n        b=b>>1;\n        c=c>>1;\n      }\n      return count;\n    }\n};\n\n```
[]