Skip to main content

Monotonic Deque

Expire out-of-window indices at the front and pop dominated candidates at the back for O(n) sliding maxima.

This lesson has not been built yet.

Related problems 0

No related practice problems are linked yet.