NumPy allowed · plain Python earns 10 bonus points
Implement the binary-search-on-partition-point solution to Median of Two Sorted Arrays -- one of the most-cited "hard" interview problems, solved by binary searching for a partition rather than ever merging the arrays.
Implement find_median_sorted_arrays(nums1, nums2): binary search over the SHORTER array for a partition index i (with the other array's partition j determined by i, so the left halves together hold exactly half the total elements), such that every element left of the partition is <= every element right of it. The median is then derived directly from the four boundary values around that partition.
find_median_sorted_arrays(nums1: list[int], nums2: list[int]) -> float