Finish problem 0004-median-of-two-sorted-arrays

This commit is contained in:
Johan Sandoval
2026-07-22 19:38:36 -05:00
parent 07b0eab7aa
commit e13f7688b6
2 changed files with 37 additions and 0 deletions
@@ -0,0 +1,13 @@
import pytest
from solution import Solution
@pytest.mark.parametrize(
"nums1, nums2, expected",
[
([1, 3], [2], 2),
([1, 2], [3, 4], 2.5),
],
)
def test_REPLACE(nums1, nums2, expected):
assert Solution().findMedianSortedArrays(nums1, nums2) == expected