Question bank › Binary Search
Dsa Binary Search Medium

Max Median Search

A research analysis team is tasked with analyzing the age of participants in different studies. To find the median age of the participants, given two sorted arrays representing two different studies' participants, write a function that finds the median age overall. The total number of participants is guaranteed to be odd. The input consists of two lines, each containing a sorted list of space-separated integers representing the ages. Example: Input: 23 27 31 35 45 25 30 32 34 40 Output: 30

Key concepts

binary_searchmedianarray

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.