2 ms·
Pretty much. Although sometimes it is more natural to build up the solution "bottom up" instead of using memoization. The tricky bit is figuring out what is th
by ufo 8y ago
Pretty much. Although sometimes it is more natural to build up the solution "bottom up" instead of using memoization.
The tricky bit is figuring out what is the recurrence relation (recursion) for the problem you are trying to solve.