Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions