Dynamic programming is not black magic | Hacker News Reader