Running Median

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • hard
  • Pro

Numbers arrive one at a time, and at any moment you must be able to report the median of everything seen so far. Explain a design that keeps each step fast.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →