Skip to content
RED SAG Skills
medium10 pts · first answer countshash-mapmemoizationdynamic-programming

Memoizing a recursive function

Naive recursive fib(n) is exponential. If you cache results in a Map keyed by n, what does fib(n) cost?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions