DSA icon indicating copy to clipboard operation
DSA copied to clipboard

merging two sorted arrays in C++ in special manners

Open hamzamehmood67 opened this issue 2 years ago • 5 comments

You're given two sorted arrays. You have to merge them in this manner that if there are some same elements in both of them the third merging array should have less number of same elements. For example: Arr1= 1 5 5 5 6 6 7 7 Arr2= 2 5 5 6

output= 1 2 5 5 6 7 7 There are two 5's because in one array there are three 5's and in second array there are two 5's. So we should always take less number.

hamzamehmood67 avatar Oct 11 '23 10:10 hamzamehmood67

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Oct 11 '23 10:10 welcome[bot]

could you assign it to me.

nitish155941 avatar Oct 19 '23 19:10 nitish155941

could you assign it to me.

Start working on it don't wait for assign

hamzamehmood67 avatar Oct 20 '23 01:10 hamzamehmood67

could you assign it to me

agastya3636 avatar Oct 24 '23 07:10 agastya3636

@hamzamehmood67 please have a look at this PR: https://github.com/MakeContributions/DSA/pull/1278 Since I am new to open source please let me know if I missed anything

prateek-narsinghani avatar Oct 25 '23 18:10 prateek-narsinghani