Sliding Window Maximum: Interactive Visualizer
Maintain a decreasing deque of indices so the current maximum is always at the front.