← Questions

Find the median from a data stream

0
AppleAmazonCodingLast asked Sep 2026

A coding interview question asked in Amazon's coding round and at Apple, last asked Sep 2026. It tests heaps and streams.

Numbers arrive one at a time. After any of them, you must be able to report the median of all numbers seen so far.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Amazon · Coding · Last asked Sep 202655 min · Usually two rounds; one is often an object-oriented design built in steps · No AI
  • Apple · Coding · Last asked Jan 2026

What it tests

heaps · streams

Your code and the AI tutor open when you unlock this question.