Consider the following recursive function for n greaterthanorequalto 1: Algorithm 1 int recurseFunc (int n) If n == 0, return 1. If n == 1, return 1. i = 0 while i
Expert Answer
Answer for the given Question:
The run time complexity of given code is
a = o(n^2)
b = O(n^2)
c = O(n^2)
a+b+c = O(n^2) + O(n^2) + O(n^2) = 3 O(n^2) = O(n^2)