Given two sorted integer arrays nums1 and nums2 , return the median of the two arrays combined into a single sorted sequence. The median is the middle value when the total number of elements is odd, or the average of the two middle values when it is even. Return the answer as a floating-point number. Input format Input is [nums1, nums2] , e.g. [[1,3],[2]] .