Back to QuestionsPractice with This Question
Median of Two Sorted Arrays
107.8K views•Asked 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.