Sunday, February 8, 2015

week5: recursion

Tracing recursion seems easy when I first get known to it. I trace it like calculating math problem.
However, I forget a very important thing in tracing recursion which is the depth. Depth really confuses me. For example,[7, [2, [1, 3]], 9, [3, 2, 4]],which seems easy if  trace it in brain. I could easily get the sum. It is kind of different while we are tracing it on paper.

does it have to be "3 steps" for recursion?
which leaves me a question for the following week study.