This article is a simple intro to dynamic programming. Dynamic programming is typically considered the hardest algorithm to work with. However, there is a systematic way to solve the problem and we just need to practice based on that method. Dynamic programming is best suited for the situation that needs to eliminate duplicate computations by caching it. Now let’s take a look at what steps are necessary to solve the problem. Steps to solve DP Define the state List out all the state transitions Implement a recursive solution Memoize (top-down) Make it bottom-up Define the state What are states in READ MORE