Question 5.1 - Recursion
Consider the following recursive method(a) Determine the output produced by the method call nerts(5). Show your working. [2 Marks](b) Construct an iterative algorithm for the above method which uses a while loop instead of a recursive method. [4 Marks](c) Outline one advantage of solving problems recursively. [2 Marks](a) Determine the output produced by the method call nerts(5). [2 Marks]
To access the contents of this site, you must subscribe.