Skip to content

Glossary: Data Structures and Algorithms

Stack

Also written: stacks

A last-in, first-out pile where you add and remove at the top only, like a stack of coffee cups. It suits undo and bracket checking.

Where the book teaches it

Related terms

Push, pop, peekFIFO, LIFOCall stack