OBJECTIVES
By the end, you will be able to…
① Explain recursion in one sentence.
"A function that solves a problem by calling itself on a smaller version of that problem."
② Write a base case that always terminates.
Every recursive function must have an exit door, or it runs forever.
③ Trace a call stack on paper.
Given fact(4), draw the stack frames top-to-bottom.
④ Convert a while-loop to a recursive equivalent.
And explain when one is clearer than the other.