Question: String start _ number is read from input. In create _ number ( ) , complete the recursive case to perform the following tasks for

String start_number is read from input. In create_number(), complete the recursive case to perform the following tasks for each digit at index i in r_digits:
Create a new string that contains all the digits of r_digits except the digit at index i.
Create a second new string that contains all the digits in s_digits with the digit at index i added at the end of the string.
Recursively call create_number() with the two newly created strings and count as the arguments. Assign count with the value returned by create_number().

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!