View the step-by-step solution to:

# You can assume that "number" consists of digits not equal to 0 and that "sum_of_digits" is an integer.

You can assume that "number" consists of digits not equal to 0

and that "sum_of_digits" is an integer.

A solution is obtained by possibly deleting some digits in "number"

(keeping the order of the remaining digits) so that the sum of

of the remaining digits is equal to "sum_of_digits".

The solutions are listed from smallest to largest, with no duplicate.

[]

[2]

[123]

[22]

[14, 23]

[4, 13, 22, 31, 112, 121]

[122, 212, 221, 1112, 1121, 1211]

[145, 154, 235, 244, 253, 343, 352, 442, 451, 532, 541, 1234, 1243,

1252, 1342, 1351, 1432, 1441, 1531, 2332, 2341, 2431, 2521, 3421,

4321, 12331, 12421, 13321]

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents