Median of Two Sorted Arrays

Given two sorted arrays nums1 and nums2, return the median of the combined sorted array. The overall run time complexity should be O(log (m+n)).

Examples
Input: [[1,3],[2]]
Output: 2
Hints

Median of Two Sorted Arrays

Given two sorted arrays `nums1` and `nums2`, return the median of the combined sorted array. The overall run time complexity should be `O(log (m+n))`.