Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
The overall run time complexity should be O(log (m+n)).
The tests accept a result within 1e-5 of the expected value.
Constraints
nums1.length == m, nums2.length == n
0 <= m, n <= 1000
1 <= m + n <= 2000
Topics
ArraysBinary SearchDivide and Conquer
Implement findMedianSortedArrays in the editor and return the answer — printing it is never graded.