Maximum of subarrays

Medium

Given an array, find the maximum for each contiguous subarray of a given size.

Example:

# Given this input:

array = [1, 2, 3, 1, 4, 5, 2, 3, 6]...

Sign in to InterviewQs to view this question

Or

New to InterviewQs? Sign up now.

By proceeding, you agree to our Terms and Conditions and Privacy Policy.

Loading editor...