I had an interview today and they gave me:
List A has:
List B has:
They asked me to merge these two list in one sorted List C.
What I told:
I added List B to List A then I made a Set from List A then generate a List from the Set.
he said me the list are big and this method will not be best for performance he told it will be a nlog(n).
Plz any concept How can i approach this issue ?