share
Stack OverflowHow to improve recursion skills?
[0] [0] Ayberk
[2010-05-27 18:54:28]
[ recursion ]
[ http://stackoverflow.com/questions/2923998/how-to-improve-recursion-skills ] [DELETED]

Possible Duplicate:
What is the best way to learn recursion? [1]

Possible Duplicate:
What is the best way to learn recursion? [2]

Possible Duplicate:
What is the best way to learn recursion? [3]

The title explaines it all. I have been studying for my exam all day, and I have faced the truth: I cannot come up with recursive solutions.

Actually, I understand how recursion works and solve output(or similar code-reading) problems. But when it comes to solving a problem in a recursive way, I have severe difficulty in developing a solution.

I wanted to ask if there is a specific way to study recursion. I mean, the best way is solving as many problems as I can, but still maybe you can give some advices about recursion. Even though it is too late for the exam, I do not want to put recursion aside.

(7) To understand recursion, you must first understand recursion. See here: stackoverflow.com/questions/2923998/… - Mark Byers
I found that data structures like trees forced me to learn recursion, becaue the non-recursive solutions to tasks like traversing or searching the tree were truly awful. Also, try learning LISP - when your only choice is recursion, you learn fast! ;) - FrustratedWithFormsDesigner