Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> DP algorithms are "just" clever ways to cache a recursion

It does't work all the time like that since caching increases the Space Complexity.

There are DP problems that can be solved without storing all possible values in an array.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: