DSA Key Problems

Median of Two Sorted Arrays

Given two sorted integer arrays, return the median of all their values as if the arrays were combined in sorted order, averaging the two central values when the total length is even.