Find the median of two sorted arrays with an O(log(min(m,n))) binary search approach.
Constraints
Example
>>> median_of_two_sorted_arrays([1, 3], [2]) 2.0 >>> median_of_two_sorted_arrays([1, 2], [3, 4]) 2.5 >>> median_of_two_sorted_arrays([0, 0], [0, 0]) 0.0 >>> median_of_two_sorted_arrays([], [1]) 1.0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints