Using a Deque to Maintain Candidates - Sliding Window Maximum — Monotonic Deque | OneNoughtOne