Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started