Find the Sliding Window Maximum across an array.
Asked in the Phone Screen Round 2 stage. This is the LeetCode Sliding Window Maximum problem.
Given an integer array nums and integer k, return the maximum value in every contiguous subarray of length k, from left to right.
nums, a non-empty list of integers, and k, where 1 <= k <= len(nums).len(nums) - k + 1 integers.def max_sliding_window(nums, k):