Modify the recursive rabbit method so that it is visually easy to follow the flow of execution. Instead of just adding “Enter” and “Leave” messages, indent the trace messages according to how “deep” the current recursive call is. Eor example, the call rabbit (4) should produce the output
Enter rabbit: n = 4
Enter rabbit: n= 3
Enter rabbit: n = 2
Leave rabbit: n = 2
value = 1
Enter rabbit: n = 1
Leave rabbit: n = 1
value = 1
Leave rabbit: n = 3
value = 2
Enter rabbit: n = 2
Leave rabbit: n = 2
value = 1
Leave rabbit; n = 4
value = 3
Note how this output corresponds to figures such as Figure.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.