LeetCode
Sliding Window Maximum
Click
here
for an explanation.