Median of Two Sorted Arrays (LeetCode 4).
Asked in the Online test stage. Python question in the 1-hour test.
Given two sorted integer arrays nums1 and nums2, return the median of all values after combining them. Do not explicitly merge the arrays.
Function signature: def find_median_sorted_arrays(nums1, nums2):
Return an integer or floating-point value. For an even total length, return the average of the two middle values.
def find_median_sorted_arrays(nums1, nums2):