← Amazon questions
CodingReported in a candidate post, Nov 2012

Sliding Window Minimum

Filed under Amazon

Given an array of numbers, a window size W, and a slide step S, find the minimum element in every valid sliding window. Also, derive a formula for the total number of windows based on N (array…

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 Amazon questions

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