You are given a positive integer num consisting of exactly
Distribute all the digits of num into two new integers, new1 and new2. Each digit from num must be used exactly once across both integers.
Return the minimum possible sum of new1 and new2.
Note: Leading zeros are permitted in
new1andnew2.
Constraints:
num
You are given a positive integer num consisting of exactly
Distribute all the digits of num into two new integers, new1 and new2. Each digit from num must be used exactly once across both integers.
Return the minimum possible sum of new1 and new2.
Note: Leading zeros are permitted in
new1andnew2.
Constraints:
num