Previous Lecture Lecture 8 Next Lecture

Lecture 8, Tue 04/29

Recursion review; Midterm notes



Midterm

The Three Laws of Recursion

1. The Function Must Have a Base Case

2. The function should move toward the base case with every recursive call.

3. The Function Must Call Itself