Practice Minimum Sum of Four Digit Number After Splitting Digits
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
You are given a positive integer num consisting of exactly four digits. Split num into two new integers new1 and new2 by using the digits found in num. Leading zeros are allowed in new1 and new2, and all the digits found in num must be used. Return the minimum possible sum of new1 and new2.
Source: Minimum Sum of Four Digit Number After Splitting Digits on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
num = 2932
52
# Example 2
num = 4009
13
Constraints
Related LeetCode Problems
Practice more problems similar to Minimum Sum of Four Digit Number After Splitting Digits.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.