SeniorSenior (6–10 yrs)CodingPythonAmazonGoogleMicrosoft
Sliding Window Maximum
Return the maximum value in every contiguous window of size k in the array.
Answers use simple, clear English.
Time: O(n)Space: O(k)
Confidence
#deque#sliding-window
Return the maximum value in every contiguous window of size k in the array.
Answers use simple, clear English.