← Questions

Median of several sorted arrays

0
GoogleCodingLast asked Oct 2026

You get several integer arrays, each sorted in non-decreasing order. Return the median of all their values taken together.

The interview started with exactly two arrays and then asked for the same answer with any number of arrays. Write the general version and give its time and space.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding