← Microsoft questions
CodingMediumReported in a candidate post, Dec 2025

Sliding window minimum or maximum for window size K

Filed under Microsoft

Given an array of integers and a sliding window size K, find the minimum or maximum value for each window as it slides from left to right.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.