Skip to main content

Monotonic Stack

Evict dominated indices on push to find next greater/smaller boundaries in one linear scan.

This lesson has not been built yet.

Related problems 1

  1. Daily Temperatures

See the connected practice path →