FastPrepMaximum of Fixed-Window Minima
Problems/Maximum of Fixed-Window Minima

Maximum of Fixed-Window Minima

Roblox logoRoblox● MediumFULLTIMEOA

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: The independent candidate reports taking the minimum of every window of length x and returning the largest of those minima. We chose the signed-integer limits and the function interface. Our version is about 98% the same as the reported question.

For every consecutive window of exactly x values in nums, find its minimum value. Return the largest of those minimum values.

Windows may overlap. This asks for the maximum of minima, not the minimum of window maxima, and it does not ask for the maximum element directly unless x = 1.

Function

maxWindowMinimum(nums: int[], x: int) → int

Examples

Example 1

nums = [2,5,4,6,1]x = 3return = 4

The three windows have minima 2, 4 and 1. Their maximum is 4.

Example 2

nums = [-3,-1,-2]x = 2return = -2

The minima are -3 and -2; the maximum is -2.

Example 3

nums = [7,4,9]x = 1return = 9

A one-element window has its own value as its minimum.

Constraints

  • 1 <= nums.length <= 1000.
  • 1 <= x <= nums.length.
  • -10^9 <= nums[i] <= 10^9.

More Roblox Online Assessment questions

  • Centered Block Placement QueriesOA · Seen Oct 2026
  • Robot Navigation Around LasersOA · Seen Oct 2026
  • Factory Batch Profit (Game Adaptation)OA · Seen Sep 2026
  • Nested Recipe Blocks (Game Adaptation)OA · Seen Sep 2026
  • Vehicle Builds for Required Terrain (Game Adaptation)OA · Seen Sep 2026
  • Track Received Byte RangesOA · Seen Sep 2026
  • Inventory Discount TrackerOA · Seen Sep 2026
  • Break a PalindromeOA · Seen Jun 2026
  • Count Pairs Differing in One DigitOA · Seen Oct 2025
  • Find Zero Cells in a 2×2 GridOA · Seen Oct 2025

Similar questions at other companies

  • Minimum of Fixed-Window MaximaJuspay · OA
  • Maximum of Subarray MinimumsJP Morgan Chase · OAJP Morgan Chase interview questions
  • Profit AnalysisVirtu Financial · OAVirtu Financial interview questions
  • Most Negative Number in Each WindowWells Fargo · OAWells Fargo interview questions
  • Incident MonitorStripe · OAStripe interview questions
  • Sliding Window Maximum in a MatrixCitadel · OACitadel interview questions
  • Maximum Earnings Across WarehousesAmazon · ONSITE INTERVIEW
  • Longest Subarray Within an Absolute-Difference LimitGoogle · ONSITE INTERVIEWGoogle interview questions
  • Longest Continuous Subarray Within an Absolute-Difference LimitUber · ONSITE INTERVIEWUber interview questions
  • Disk Space Window AnalyzerAgoda · PHONE SCREENAgoda interview questions

Interview reports that mention this question

  • Roblox OA: What It Tests (2026)
  • Roblox New Grad Early OA Tasks: 10 Experiences (Part 7 of 7)

Roblox interview experiences

  • Roblox New Grad Engineer Rounds: 13 Experiences (Part 6 of 7)
  • Roblox New Grad HackerRank OA: 18 Experiences (Part 5 of 7)
  • Roblox New Grad CodeSignal Finals: 23 Experiences (Part 4 of 7)
  • Roblox New Grad Games and BQ: 25 Experiences (Part 3 of 7)
All Roblox interview questionsSee Roblox hiring insights
Saved
class Solution {
    public int maxWindowMinimum(int[] nums, int x) {
        // write your code here
    }

}
Checking account…