Skip to content

Monotonic Stack

Problems typically involve finding the nearest smaller or larger element in a sequence for each element in the same sequence.

Comments