LeetCode 239: Sliding Window Maximum
Problem Restatement We are given an integer array nums and an integer k . There is a sliding window of size k . It starts at the left side of the array and moves one position to the right each time. For each window, we need to return the maximum value inside that window. LeetCode gives this example: Input: nums = [1,3,-1,-3,5,3,6,7], k = 3 Output: [3,3,5,5,6,7] The constraints allow...