Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

merging two sorted arrays in C++ in special manners #1272

Open
hamzamehmood67 opened this issue Oct 11, 2023 · 5 comments
Open

merging two sorted arrays in C++ in special manners #1272

hamzamehmood67 opened this issue Oct 11, 2023 · 5 comments

Comments

@hamzamehmood67
Copy link

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.

@welcome
Copy link

welcome bot commented Oct 11, 2023

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

@nitish155941
Copy link

could you assign it to me.

@hamzamehmood67
Copy link
Author

could you assign it to me.

Start working on it don't wait for assign

@agastya3636
Copy link

could you assign it to me

@prateek-narsinghani
Copy link

@hamzamehmood67 please have a look at this PR: #1278
Since I am new to open source please let me know if I missed anything

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants