Skip to content

Glossary: Coding Interviews in Rust

Monotonic stack

A stack kept in sorted (for example increasing) order, used to answer "next bigger value" questions efficiently.

Where the book teaches it

Related terms

Stack