Given two sorted arrays nums1 and nums2 of sizes m and n respectively, the task is to find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
Click Run to execute sample tests.