Free written solutionMinimum Sum of Four Digit Number After Splitting Digits (LeetCode 2160): Solution and Explanation
Rearrange the four digits of num into two new numbers, leading zeros allowed, so that their sum is as small as possible.
Read the intuition, approach, code and complexity →