Given an integer array nums and a window size k, return the maximum of each contiguous window of size k as it slides left to right.
Input
numskOutput: the window maximums, space-separated.
1 3 -1 -3 5 3 6 7 3
3 3 5 5 6 7
Windows: [1,3,-1] [3,-1,-3] [-1,-3,5] [-3,5,3] [5,3,6] [3,6,7].
1 1
1
Run your code against the sample tests, or Submit to run the full suite.