Monotonic Stacks and Deques: Next Greater, Spans and Window Maximums · DSA Patterns for Working Engineers · aiiolar