Your question is Median-Level Array Manipulation. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
WePay's reporting tools receive transaction amounts from two already sorted sources. Given two sorted integer arrays, return the median of all values while avoiding unnecessary storage for a merged array.
Use the standard median definition: if the combined length is odd, return the middle value; if it is even, return the average of the two middle values.
Implement median_two_sorted(nums1, nums2).
nums1 and nums2.def median_two_sorted(nums1, nums2):