Glossary term
What is base case? Meaning for developers
The input that a recursive function answers directly, without calling itself again. Without one, the recursion never stops.
Learn it properly · DSALesson 14: Recursion BasicsA function that calls itself, a base case that stops it, and the call stack underneath.