code-dump icon indicating copy to clipboard operation
code-dump copied to clipboard

Median of two sorted arrays

Open sassy-bugs opened this issue 1 year ago • 7 comments

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)).

Example 1:

Input: nums1 = [1,3], nums2 = [2] Output: 2.00000 Explanation: merged array = [1,2,3] and median is 2. Example 2:

Input: nums1 = [1,2], nums2 = [3,4] Output: 2.50000 Explanation: merged array = [1,2,3,4] and median is (2 + 3) / 2 = 2.5.

Constraints:

nums1.length == m nums2.length == n 0 <= m <= 1000 0 <= n <= 1000 1 <= m + n <= 2000 -106 <= nums1[i], nums2[i] <= 106

I have already starred and forked the repo, please assign me this issue! Thanks and Regards.

sassy-bugs avatar Oct 04 '23 13:10 sassy-bugs

Please assign this task to me

durgesh4040 avatar Oct 04 '23 20:10 durgesh4040

Kindly assign me this task with hacktober fest tag

Pradyumn04 avatar Oct 05 '23 06:10 Pradyumn04

Kindly assign this task to me...

garvit0908 avatar Oct 06 '23 10:10 garvit0908

Please assign this task to me with hacktoberfest 2023

mukul018 avatar Oct 09 '23 10:10 mukul018

Please assign it to me

Apoorva-011 avatar Oct 17 '23 12:10 Apoorva-011

Assign the task to me i will give you the best optimistic solution.

Abiral-2724 avatar Oct 17 '23 12:10 Abiral-2724

Hey !! assign me this i can quickly fix it.

Deeparawat avatar Oct 22 '23 11:10 Deeparawat