Given request timestamps and a window size, find the maximum number of requests in any continuous window.
Unlock detailed company stats for this questionUpgrade
Example: requestTime = [1, 3, 4, 5, 7], windowSize = 4 - the window starting at 1 includes timestamps 1, 3, 4, so the answer is 3.
Also asked as · Given an array of timestamps and a window size, find the maximum number of requests within any window of that many minutes.; Given an array of request timestamps and a window size, find the maximum number of requests allowed within any window.
Community answers
No answers contributed by the community yet.
Related questions
Find the maximum number of intervals overlapping any time window of size K.Given a stream of Uber ride requests, compute the number of ride requests in every 15-minute window.Given an array of integers and an integer k, find the number of continuous subarrays whose sum equals k.Related courses

Course

Course
Course
