Quick Overview

Given any number of integer arrays, each sorted in non-decreasing order, return the median of all their elements combined, averaging the two middle values when the total count is even. It tests order-statistic reasoning over sorted inputs, starting from two arrays and generalizing to many.

Median of All Values Across Several Sorted Integer Arrays

Company: Google

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Given any number of integer arrays, each sorted in non-decreasing order, return the median of all their elements combined, averaging the two middle values when the total count is even. It tests order-statistic reasoning over sorted inputs, starting from two arrays and generalizing to many.

Median of All Values Across Several Sorted Integer Arrays

Google • Software Engineer

Loading…