Skip to content

Glossary: Coding Interviews in JavaScript

Stack

Also written: stacks

A last-in, first-out list, here a plain array with `push` and `pop`. It suits 'most recent', undo and cancel-out problems, such as Alex's scanner.

Where the book teaches it

Related terms

Monotonic stackCall stackQueue