Tap here to switch tabs
Problem
Submissions

Problem: Maximum of Minimum Values in All Subarrays

Try to solve the Maximum of Minimum Values in All Subarrays problem.

Statement

Given an integer array nums of length n, find the maximum of the minimum values of all subarrays of each possible length from 11 to n.

Return an array of length n where the element at index i is the maximum among the minimum values of all contiguous subarrays of length i+1i + 1.

Constraints:

  • n ==== nums.length

  • 1≤1 \leq n ≤105\leq 10^5

  • 0≤0 \leq nums[i] ≤109\leq 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Maximum of Minimum Values in All Subarrays

Try to solve the Maximum of Minimum Values in All Subarrays problem.

Statement

Given an integer array nums of length n, find the maximum of the minimum values of all subarrays of each possible length from 11 to n.

Return an array of length n where the element at index i is the maximum among the minimum values of all contiguous subarrays of length i+1i + 1.

Constraints:

  • n ==== nums.length

  • 1≤1 \leq n ≤105\leq 10^5

  • 0≤0 \leq nums[i] ≤109\leq 10^9