CSC300 / CSC402: Non-Nullable Recursion [3/5] |
It's more typical to check base case first in a recursive function. Note that lines 12-13 and 19-20 look almost exactly the same!
The only difference is we're working with
Computes forwards A single function call both:
|