Python solution with explanation, easy to understand
on each bit, while a[i] | b[i] == c[i]\na| b| c\n----|----|----\n0|0|0\n1|0|1\n0|1|1\n1|1|1\nnothing would be changed.\n\nwhile a[i] | b[i] != c[i]\na| b| c|fli
on each bit, while `a[i] | b[i] == c[i]`\na| b| c\n----|----|----\n0|0|0\n1|0|1\n0|1|1\n1|1|1\nnothing would be changed.\n\nwhile `a[i] | b[i] != c[i]`\na| b| c|flips number\n----|----|----|----\n0|0|1|1\n1|0|0|1\n0|1|0|1\n1|1|0|2\n\n```python\nclass Solution(object):\n    def minFlips(self, a, b, c):\n        """\n        :type a: int\n        :type b: int\n        :type c: int\n        :rtype: int\n        """\n        res = 0\n        while (a | b) != c:\n            ai = a % 2\n            bi = b % 2\n            ci = c % 2\n            \n            if ai | bi != ci:\n                res += ai + bi + ci\n\n            a /= 2\n            b /= 2\n            c /= 2\n        \n        return res\n            \n\n                    \n            \n        \n```
[]