FastPrepMaximum of Window Minimums
Problems/Maximum of Window Minimums

Maximum of Window Minimums

Oracle logoOracle● MediumFULLTIMEPHONE SCREEN

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in an Oracle phone screen. The task, the fixed window rule, and the example match the report. Our version is about 99% the same as the reported question.

Given an integer array nums and an integer windowSize, consider every contiguous subarray of length windowSize.

Find the minimum value in each window and return the maximum among those window minimums.

Function

maximumOfWindowMinimums(nums: int[], windowSize: int) → int

Examples

Example 1

nums = [1,3,-1,5,3,6]windowSize = 3return = 3

The window minimums are -1, -1, -1, and 3; their maximum is 3.

Example 2

nums = [-4,-2,-5]windowSize = 1return = -2

With window size 1, each element is its own minimum, so the maximum is -2.

Constraints

  • 1 <= nums.length <= 200000
  • -10^9 <= nums[i] <= 10^9
  • 1 <= windowSize <= nums.length

More Oracle Phone Screen questions

  • Remove Parentheses from a Plus-Minus ExpressionPHONE SCREEN · Seen Nov 2026
  • Trapping Rain WaterPHONE SCREEN · Seen Oct 2026
  • Shortest Window by Distinct-Value SumPHONE SCREEN · Seen Oct 2026
  • Detect a Cycle in a Directed GraphPHONE SCREEN · Seen Oct 2026
  • Time-Based Key-Value StorePHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
  • Remove Adjacent Duplicates in String IIPHONE SCREEN · Seen Oct 2026
  • Sum Root-to-Leaf Binary NumbersPHONE SCREEN · Seen Oct 2026
  • Longest All-Present Attendance StreakPHONE SCREEN · Seen Oct 2026
  • Next PermutationPHONE SCREEN · Seen Sep 2026
  • Valid ParenthesesPHONE SCREEN · Seen Sep 2026

Similar questions at other companies

  • Disk Space Window AnalyzerAgoda · PHONE SCREENAgoda interview questions
  • Transcript Window MetricsSesame · PHONE SCREEN
  • Sliding Window MaximumAkuna Capital · PHONE SCREENAkuna Capital interview questions
  • Moving Average of a Data StreamSquarepoint Capital · PHONE SCREENSquarepoint Capital interview questions
  • Sliding Window MaximumGroww · PHONE SCREEN
  • Largest Value in Every Sliding WindowAdobe · PHONE SCREENAdobe interview questions
  • Sliding Window MaximumBloomberg LP · PHONE SCREEN · ONSITE INTERVIEWBloomberg LP interview questions
  • Sliding Window Average (Meta Canada, E4/E5 :)Meta · PHONE SCREEN · ONSITE INTERVIEWMeta interview questions
  • Sliding Window MaximumNVIDIA · PHONE SCREENNVIDIA interview questions
  • Maximum Earnings Across WarehousesAmazon · ONSITE INTERVIEW

Oracle interview experiences

  • Oracle SWE Onsite Interview Experience: 1 Experience
All Oracle interview questionsSee Oracle hiring insights
Saved
class Solution {
    public int maximumOfWindowMinimums(int[] nums, int windowSize) {
        // Write your code here.
    }
}
Checking account…