Glossary: Coding Interviews in JavaScript
Base case
Also written: base answer
The simplest input a recursive function answers directly, without calling itself, such as an empty tree or `i === items.length`. Without it the recursion never stops.
Glossary: Coding Interviews in JavaScript
Also written: base answer
The simplest input a recursive function answers directly, without calling itself, such as an empty tree or `i === items.length`. Without it the recursion never stops.