Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Median of Two Sorted Arrays
Hard
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Given two sorted arrays, find the median of the combined sorted array.
Sample Input:
[1,3], [2]
Sample Output:
2
Hints
Hint 1
Use binary search to find partition point
Hint 2
Ensure left and right partitions have equal elements
Hint 3
Median depends on total elements being odd or even
Code Editor
Reset
Run
Save
Loading...