I've been programming for quite a while and haven't had any problems except one: Recursion. I just don't know how to implement things using recursion. Whenever I get an assignment where I know recursion could solve a problem, I don't know how to go about doing it. Now I know what recursion is; method calling itself and having a base case and all that good stuff, but being able to actually solve a problem using it is not possible for me... I've tried thinking about recursion by visualizing as a stack of plates and that has helped for some simple problems. But even trying to reverse a string is difficult (I tried for an hour before I gave up and looked up the answer) and binary searches are out of the question. Maybe I'm thinking to hard or something...
I've looked around on the internet for tutorials on this subject but they have not helped.
Can anyone help me?
This post has been edited by Rekmesh: 17 March 2009 - 12:20 AM