Add output code to the Spock method c(n, k) diat shows the actual sequence of calls that are made and the value diat they will return when the method is executed. For example, c (3, 2) outputs the following:
c(3, 2) = c(2, 1) + c(2, 2)
c(2, 1) = c(1, 0) + c(l, 1)
c(l, 0) = 1
c(l, 1) = 1
c(2, 2) = 1
Use your modified version to run c(4,2) to show the actual order that the methods are called in Figure 3-12.
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.