Given two ascending integer arrays, return the median of their combined values. At least one array is non-empty.
Input / output
nums1: integer[], nums2: integer[]Examples
[1,3] and [2] return 2.0.[1,2] and [3,4] return 2.5.Constraints
0 <= nums1.length, nums2.length <= 100,0001 <= nums1.length + nums2.lengthFollow-up
Can you partition the shorter array and achieve O(log(min(m,n))) time?