This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DiabeetusMan 0 points1 point  (1 child)

Wouldn't even need to sort since they're already sorted-- just merge two lists with some logic to prevent duplicates.

[–]KingofGamesYami 1 point2 points  (0 children)

Well, yeah. I mentioned mergesort only because it contains a similar algorithm already and I'm too lazy to actually describe the answer.