Glossary: Coding Interviews in Go
Base case
Also written: base answer
The simplest input a recursive function answers directly without calling itself, such as an empty tree (`nil`) returning 0. Without it the recursion never stops.
Glossary: Coding Interviews in Go
Also written: base answer
The simplest input a recursive function answers directly without calling itself, such as an empty tree (`nil`) returning 0. Without it the recursion never stops.