← Google questions

Trimmed mean of a sliding window of size w excluding top and bottom k elements

Filed under Google

Given a continuous stream of integers, a sliding window size w, and a count k, compute the trimmed mean of the window. The trimmed mean is calculated by discarding the k largest and k smallest…

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

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