Skip to content

Glossary: Coding Interviews

Stack

Also written: stacks

A last-in, first-out structure. In Python it is a list where `append` pushes and `pop` pops, and it suits "most recent", undo and matching problems.

Where the book teaches it

Related terms

Monotonic stack