r/programming • • May 09 '15

"Real programmers can do these problems easily"; author posts invalid solution to #4

https://blog.svpino.com/2015/05/08/solution-to-problem-4
3.1k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

1

u/dagamer34 May 10 '15

It's weird how you can do something like dynamic programming without actually knowing what it is. It just seems like an optimal solution.

1

u/C0rinthian May 10 '15

Heh, it's also a good example of DP, which is easier to get your head around than, say, 0-1 knapsack.