Question: using python, You are given a list of integers nums, there is a sliding window of size k which is moving from the very left
using python, You are given a list of integers nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. Write a function Exercise8(nums,k) which returns the max number of the sliding window. Note that k is always between 1 and len(nums). Also, len(nums) is always greater than or equal to 1. Additionally note that you function should return the result in the form of a list.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
