Find the maximum of the minimum available space over all windows of size x.
Unlock detailed company stats for this questionUpgrade
Given an array space[] and a window size x, find the minimum available space in every contiguous window of size x, then return the maximum among those minimum values. Constraints are large, so an efficient approach is needed.
Example: x = 2, space = [8, 2, 4, 6]. Window minimums are [2, 2, 4], so the answer is 4.
Community answers
No answers contributed by the community yet.
Related questions
For every window of size k, find the minimum, then return the maximum among all those minimums.Find the maximum of every sliding window of size k in an array (Sliding Window Maximum).Find the maximum number of intervals overlapping any time window of size K.Related courses

Course

Course
Course
