Back to Questions

Median of Two Sorted Arrays

107.8K viewsAsked at Microsoft
Hard

Question Explain

Given two sorted arrays `nums1` and `nums2` of size $m$ and $n$, return the median of the two sorted arrays. Aim for $O(\log(m+n))$ complexity.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Median of Two Sorted Arrays - Interview Question