Dynamic Programming - top-down vs bottom-up
问题 What I have learnt is that dynamic programming (DP) is of two kinds: top-down and bottom-up. In top-down , you use recursion along with memoization. In bottom-up , you just fill an array (a table). Also, both these methods use same time complexity. Personally, I find top-down approach more easier and natural to follow. Is it true that a given question of DP can be solved using either of the approaches? Or will I ever face a problem which can only be solved by one of the two methods? 回答1: Well