grokking-algorithms/chapter3/README.md

11 lines
270 B
Markdown
Raw Normal View History

2024-02-06 22:04:37 +00:00
# Recursion
Recursive functions must have both:
- one or more base cases
- a recursive case
The base cases are required to ensure the recursion stops when meeting a condition
The recursive case adds functions onto the call stack and completes each one top down.