Skip to main content

One doc tagged with "monotonic-stack"

View all tags

Monotonic Stack & Queue

"For each element, find the nearest element to the right that is bigger" looks like it needs a nested