Recursion
Last updated
Last updated
Two general categories of recursion functions:
repeatedly execute a task
perform a calculation based on a subproblem
Approach recursion with a top-down approach. Strategy (from )
Imagine the function you're writing has already been implemented
Identify the subproblem of the problem
See what happens when you call the function on the subproblem and go from there