4 ms·tl;dr Dynamic programming is often better than greedy.by hzay 14y agotl;dr Dynamic programming is often better than greedy.shmageggy 14y agoMore like hill climbing is often better than depth-first search.