Monday, October 21, 2013

Re: Recursion

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?

1 comment:

  1. Please go to office hours or talk to a TA about what you're having trouble with!
    Here's a good place to practice recursion: http://codingbat.com/

    ReplyDelete