Question discussion

What is the space complexity (maximum recursion stack depth) of a naive recursive Fibonacci function (without memoization) when computing F…

575Medium DSSSB TGT Computer Science 0 replies 1 views
0
What is the space complexity (maximum recursion stack depth) of a naive recursive Fibonacci function (without memoization) when computing Fib(n)?
  • AO(1)
  • BO(n)
  • CO(2^n)
  • DO(n²)
Correct answer: B

Discussion 0

Nobody has replied yet. Start the discussion!