Glossary: Algorithms Beyond the Basics
Base case
Also written: base cases
The simplest situation in a recursive function, where it returns an answer directly without calling itself again. In `subsets` it is reached when every item has been decided.
Glossary: Algorithms Beyond the Basics
Also written: base cases
The simplest situation in a recursive function, where it returns an answer directly without calling itself again. In `subsets` it is reached when every item has been decided.