r/programming • u/SilasX • 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
r/programming • u/SilasX • May 09 '15
1
u/C0rinthian May 09 '15
It demonstrates recursion very well, though. So it's an excellent choice to teach recursion even though that's not the best way to approach the problem.
Recursion typically comes earlier in the learning process than dynamic programming anyway. So the concepts build on each other.