Java easy Solution || self explanatory👍
Please UPVOTE if you like my solution!\n\nclass Solution {\n    public String toBin(int num){\n        String str = "";\n        for(int i = 0;i<32;i++){\n     
Please **UPVOTE** if you like my solution!\n```\nclass Solution {\n    public String toBin(int num){\n        String str = "";\n        for(int i = 0;i<32;i++){\n            if(num<1){\n                str += "0";\n            }\n            if(num%2==1){\n                str += "1";\n                num = num/2;\n            }\n            else{\n                str += "0";\n                num = num/2;\n            }\n        }\n        return str;\n    }\n    public int minFlips(int a, int b, int c) {\n        String stra = toBin(a);\n        String strb = toBin(b);\n        String strc = toBin(c);\n        int min = Integer.MAX_VALUE;\n        min = Math.min(min,stra.length());\n        min = Math.min(min,strb.length());\n        min = Math.min(min,strc.length());\n        int count = 0;\n        for(int i = 0;i<min;i++){\n            if(stra.charAt(i) == \'0\' && strb.charAt(i) == \'0\' && strc.charAt(i) == \'0\'){\n                continue;\n            }\n            else if(stra.charAt(i) == \'1\' && strb.charAt(i) == \'1\' && strc.charAt(i) == \'0\'){\n                count+=2;\n            }\n            else if(stra.charAt(i) == \'1\' && strb.charAt(i) == \'0\' && strc.charAt(i) == \'0\'){\n                count+=1;\n            }\n            else if(stra.charAt(i) == \'0\' && strb.charAt(i) == \'1\' && strc.charAt(i) == \'0\'){\n                count+=1;\n            }\n            else if(stra.charAt(i) == \'0\' && strb.charAt(i) == \'0\' && strc.charAt(i) == \'1\'){\n                count+=1;\n            }\n            \n        }\n        return count; \n    }\n}\n```\n
['Java']