6 3 4 2 12 3 -1 6
The four windows have minimum values 2, 2, -1, and -1.
2 2 -1 -1
4 1 8 7 6 5
With window length 1, each answer is the single value in that window.
8 7 6 5
5 5 3 1 4 1 5
There is only one full window, and its minimum value is 1.
1
Given an array and a window length kkk, print the minimum value in every contiguous window of length kkk from left to right.