Skip to content

Glossary: Coding Interviews in C++

Stack

Also written: stack (data structure)

A last-in, first-out structure, used for "most recent", undo and matching problems. A vector works as one using `push_back`, `pop_back` and `back()`.

Where the book teaches it

Related terms

Monotonic stackCall stack