Tap here to switch tabs
Problem
Submissions

Problem: Minimum Sum of Four Digit Number After Splitting Digits

Try to solve the Minimum Sum of Four Digit Number After Splitting Digits problem.

Statement

You are given a positive integer num consisting of exactly 44 digits.

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 new1 and new2.

Constraints:

  • 1000≤1000 \leq num ≤9999\leq 9999

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Minimum Sum of Four Digit Number After Splitting Digits

Try to solve the Minimum Sum of Four Digit Number After Splitting Digits problem.

Statement

You are given a positive integer num consisting of exactly 44 digits.

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 new1 and new2.

Constraints:

  • 1000≤1000 \leq num ≤9999\leq 9999