Sliding window maximum (deque-based optimization) · InterviewLane