← Apple questions
CodingReported in a candidate post, May 2020

Find median from a data stream

Filed under Apple

Design a structure that receives numbers one at a time and can return the median of all numbers seen so far at any moment. The median is the middle value of the sorted data, or the average of the two…

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

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