You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2024. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: