Evgenia Karunus
Aug 24, 2017 · 1 min read

That’s a very good idea to be mentioning stack when explaining recursion.

I remember the most confusing part for me when learning to use recursion was the return part (recursive case), as in ‘what happens when this return is executed, where are we heading next’.

Stack reminds us of what’s happening in recursive case, and offers a clear algorithmic way to calculate what the next function call will be.

)

Evgenia Karunus

Written by

Mostly doing React.