0ms runtime || Beats 100 %
\n\n# Code\n\nclass Solution {\npublic:\n    int minimumSum(int num) {\n       vector<int>digit;\n       while(num>0){\n           digit.push_back(num%10);\n   
\n\n# Code\n```\nclass Solution {\npublic:\n    int minimumSum(int num) {\n       vector<int>digit;\n       while(num>0){\n           digit.push_back(num%10);\n           num/=10;\n       } \n       sort(digit.begin(),digit.end());\n       return (digit[0]*10+digit[3])+(digit[1]*10+digit[2]);\n    }\n};\n```
['C++']