Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
Input Format
Input is managed for you
Output Format
Output is managed for you
Constraints
nums1.length == m nums2.length == n 0 <= m <= 1000 0 <= n <= 1000 1 <= m + n <= 2000 -10^6 <= nums1[i], nums2[i] <= 10^6
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
5 3 5 7 9 12 3 4 6 14
Output
6.5