Skip to content

Glossary: Data Structures and Algorithms in Go

Stack

Also written: stacks

A last-in, first-out pile where you add and remove at the top only, like cups. Useful for undo and bracket checking.

Where the book teaches it

Related terms

Push, pop, peekFIFO, LIFOCall stack