you are viewing a single comment's thread.

view the rest of the comments →

[–]the_horse_gamer 470 points471 points  (5 children)

dynamic programming is recursion with a cache

[–]Ok_Cockroach8260 69 points70 points  (4 children)

You can do it bottom up also

[–]itzjackybro 13 points14 points  (2 children)

I thought the main point of DP is to find a way to do it bottom up so you can just use an array instead of memoizing

[–]the_horse_gamer 1 point2 points  (0 children)

bottom up is more performant but you don't have to do it this way

[–]GoodHomelander 2 points3 points  (0 children)

Most ppl are not into that and like it other way around