Given two sorted arrays nums1 and nums2, return the median of the combined sorted data. The intended solution runs in O(log(min(m, n))).
Input
nums1 (may be empty)nums2 (may be empty)Output: the median with two decimal places (the template formats it).
1 3 2
2.00
Merged: [1,2,3], median 2.
1 2 3 4
2.50
Merged: [1,2,3,4], median (2+3)/2.
Run your code against the sample tests, or Submit to run the full suite.