Skip to content

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.

Where the book teaches it

Related terms

BacktrackingMemoization