Glossary: Coding Interviews in Rust
Monotonic stack
A stack kept in sorted (for example increasing) order, used to answer "next bigger value" questions efficiently.
Glossary: Coding Interviews in Rust
A stack kept in sorted (for example increasing) order, used to answer "next bigger value" questions efficiently.