Two and Two
We should always do a 2/2 split. 1/3 splits produce large sums. \n\nSo, we pick two smallest digits to be in the decimal\'s place, and two largest - one\'s plac
We should always do a 2/2 split. 1/3 splits produce large sums. \n\nSo, we pick two smallest digits to be in the decimal\'s place, and two largest - one\'s place. \n\n**C++**\n```cpp\nint minimumSum(int num) {\n    auto s = to_string(num);\n    nth_element(begin(s), begin(s) + 1, end(s));\n    return (s[0] -\'0\' + s[1] - \'0\') * 10 + s[2] - \'0\' + s[3] - \'0\';\n}\n```
[]