I never learned to use recursion when I taught myself programming. I'm finding it difficult to design with recursion in mind. I'd rather just solve any problem with loops. I don't see the benefit of using recursive methods. I find it hard to write them with the preset parameters, because they need to return a value. How am I supposed to modify a value recursively if I don't include it as a parameter?
Please go to office hours or talk to a TA about what you're having trouble with!
ReplyDeleteHere's a good place to practice recursion: http://codingbat.com/