I have 2 sorted lists of strings with repetitions
ListA = {a,a,b,c,c,d,e,f}
ListB = {a,a,a,c,e,f,g,g}
If i pass this to some program like Diff or Compare It!, i would get the following output
What i would like to have is the following lists
Listcommon = {a,a,c,e,f} (Common in both)
ListAdiff = {b,c,d}
ListBdiff = {a,g,g}
Sorry if i was not clear before but this is what i want to do..Is there any in built classes in C# which can do this? Or any other piece of code?