← Back to Sliding Window Cheatsheet

Sliding Window Maximum

Deque (stores indices):
Output (max per window):