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