3. Recursive Program (30 points) Consider the following recursive function for n1 Algorithm 1 int recurseFunc(int n) If n == 0, return 1 If n == 1, return 1 while i
Expert Answer
Answer for the given queston:
As per given code the runtime complexcity of a given is
each recursive code will run O(n^2) so total three run times will run
total = O(n^2) + O(n^2) + O(n^2) = 3O(n^2) = O(n^2)