Median of Two Sorted Arrays
Updated Feb 24, 2026
Problem
Return median of two sorted arrays.
Constraints
0 <= m, n <= 1000
Examples
Example 1
Input:
{"nums1": [1, 3], "nums2": [2]}
Output:
2.0
Function Signature
def findMedianSortedArrays(self, nums1: list[int], nums2: list[int]) -> float
How to Submit
Implement a Solution class with a findMedianSortedArrays method.
Your method will be called with the input parameters and should return the answer.