Maximum of Minimums of Every Window

Given an integer array A of length n and an integer x, return the maximum among the minimum values of all contiguous subarrays of length exactly x.

In other words:

  1. Enumerate every con...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: