C++ solution||0 ms
class Solution {\npublic:\n    int minimumSum(int num) {\n        string str = to_string(num);\n        sort(str.begin(), str.end());\n        int n = ((str[0]-
class Solution {\npublic:\n    int minimumSum(int num) {\n        string str = to_string(num);\n        sort(str.begin(), str.end());\n        int n = ((str[0]-\'0\')*10 + str[2]-\'0\')+((str[1]-\'0\')*10 + str[3]-\'0\');\n        return n;\n    }\n};
['String', 'C', 'Sorting']