Updated 2 years ago
4. median-of-two-sorted-arrays
Use the "Run" button to execute the code.
!pip install jovian --upgrade --quiet
import jovian
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
The overall run time complexity should be O(log (m+n)).
test cases
- median of even number length
- median of odd number length
- empty list as 1 input
- list as both inputs