Median of Two Sorted Lists

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

Given two sorted lists, find the median of all their numbers combined, faster than merging them. Explain how a binary search over where to cut the lists works.

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 →