Problem 1941. Lowest sum from a group of digits
Hi there. It's James's daughter here again, and my third grade math teacher is up to her old tricks. This time, she's giving us an even number of digits between 0-9, and she wants us to come up with the smallest possible sum of two numbers that are the same length.
For example, if we're given [0 1 2 3], the smallest sum we can get using those numbers by adding two 2-digit numbers together is 33. That's either 10+23 or 13+20. We don't need to know what the two original numbers are, just what their sum is. We also can't start any of our numbers with a zero, because that's cheating.
You guys did a great job with my earlier problems, and even taught my dad a few things about MATLAB! I hope you can help me out with this one as well!
Solution Stats
Problem Comments
-
2 Comments
I fought against this problem during months... :)
Dear James, I got a few questions: how old are your lovely daughter? and how insanely creepy is this teacher to put number like "225802467" in her homework? That just kill us too.
Solution Comments
Show commentsProblem Recent Solvers52
Suggested Problems
-
15767 Solvers
-
Find common elements in matrix rows
2632 Solvers
-
Arrange Vector in descending order
11272 Solvers
-
435 Solvers
-
Replace pattern 0 1 0 and 1 0 1
144 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!