How to Solve Any Dynamic Programming Problem


I enjoyed this article, but I don’t understand the purpose of the Turn it around step. I feel like the code was better before that step because you could call fib multiple times without having to completely rebuild the cache each time. Maybe you are replacing recursion with iteration for performance reasons?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.