On a call to fib(10), how many times is fib(4) computed? I can't seem to figure this out, could anyone help?
def fib ( n ):
if n < 3:
return 1
else:
return fib(n-1) + fib(n-2)
Trying to figure out how many times fib(4) is computed.