❇️Solution
\n# Complexity\n- Time complexity: O(log_2(max(a,b,c)))\n\n- Space complexity:O(log_2(max(a,b,c)))\n\n# Code\n\n/**\n * @param {number} a\n * @param {number} b\
\n# Complexity\n- Time complexity: O(log_2(max(a,b,c)))\n\n- Space complexity:O(log_2(max(a,b,c)))\n\n# Code\n```\n/**\n * @param {number} a\n * @param {number} b\n * @param {number} c\n * @return {number}\n */\nfunction dec2bin(dec){\n   return dec.toString(2);\n}\nvar minFlips = function(a, b, c) {\n    let flip =0;\n    a=dec2bin(a).toString(2).split(\'\')\n    b=dec2bin(b).toString(2).split(\'\')\n    c=dec2bin(c).toString(2).split(\'\')\n\n    let maxbit = Math.max(a.length, b.length, c.length)\n\n    while(maxbit)\n    {\n        maxbit--;\n        const charA = a.length ? a.pop() : \'0\';\n        const charB = b.length ? b.pop() : \'0\';\n        const charC = c.length ? c.pop() : \'0\';\n\n        if(charC ===\'0\'){\n            if(charA ===\'1\') flip++;\n            if(charB=== \'1\') flip++;\n        }\n        else {\n            if(charA === \'0\' && charB ===\'0\') flip++\n        }\n    }\n    return flip\n};\n```
['JavaScript']