DIY: Sliding Window Maximum

Solve the interview question "Sliding Window Maximum", in this lesson.

Problem statement

For this coding exercise, you are given an array of integers. There is a sub-array (window slide) of size k, which moves from the extreme left to the extreme right of the given array. The sub-array size ...