Professional Documents
Culture Documents
2. . What is the execution time and time complexity of the algorithm below?
def Fibonacci(n):
if n in [0, 1]:
return n
else:
return Fibonacci(n-1) + Fibonacci(n-2)