MicrolearnENPTES

Dynamic programming

Lesson 19 of 20 · Algo.Micro

Solve each small problem once, store it, build the big answer from the table.

Same Fibonacci, plus a notebook: before computing fib(k), check if the answer is already written down (purple). Each value is computed once: the 25 calls become 11.

Check yourself

What does memoization do?

Do it in the browser: a real algorithms tool, a short mission and instant feedback. No install.

Start this lesson — free
← RecursionGreedy algorithms →

All lessons · Algo.Micro