Skip to content
Leetcode
Esc
↑↓navigate↵open⌘Jpreview

Monotonic Stack

A stack keeps its items in sorted order, which finds the next larger or smaller item in one pass.

Last updated on September 24, 2026

Was this page helpful?