+ 2
Create two sorted array and merge them in single array and the elements should not repeat inthe array..can u explain the program
4 Answers
+ 2
Since you've tagged Python, there's an easy way to do that in Python.
You can convert both lists into sets and then find the union of those two sets and convert the union set back to list. There you'll have a list which would be the result of two lists merged together and no repeating elements.
I guess your question is not clear, should the resultant list be sorted as well?
+ 1
Ok thank uuu
+ 1
But I should not convert to sets... Without sets how I merge it... Explain please
+ 1
This may help:-
https://code.sololearn.com/cceRWofSdQT5/?ref=app