Given a string of digits, insert commas to create a sequence of strictly increasing numbers so as to minimize the magnitude of the last number. For this problem, leading zeros are allowed in front of a number. The solution is not necessary unique, see test2.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers8
Suggested Problems
-
Return unique values without sorting
999 Solvers
-
Return a list sorted by number of consecutive occurrences
428 Solvers
-
Sum the elements in either diagonal of a square matrix
221 Solvers
-
Split bread like the Pharaohs - Egyptian fractions and greedy algorithm
94 Solvers
-
112 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Would [1,11] be a valid answer for test 3?