Possible Duplicate:
Compare two Lists for differences
I have following set of arrays
string[] arr1 = { 1155717, 5184305, 2531291, 1676341, 1916805 ... }
string[] arr2 = { 1155717, 1440230, 2531291, 8178626, 1916805 ... }
string[] arr3 = { 1155717, 5184305, 4025514, 1676341, ... }
Arrays count is in millions & can contains characters as well. I want to create a report like this in csv
diff.csv
arr1,arr2,arr3
1155717,1155717,1155717
5184305,--N/A--,5184305
--N/A--,1440230,--N/A--
--N/A--,--N/A--,4025514
1676341,--N/A--,1676341
--N/A--,8178626,--N/A--
1916805,1916805,--N/A--
I guess applying for loops in each & comparing wouldn't be that good approach.Any Ideas?
Few Things i missed :
1. Order doesnt matter.
2. Elements in a single list will be unique.
3. I plan to skip loops as far as possible & look for .NET 3.5 / 4.0 's new features in LINQ / Generics which I can apply here!
For those voting negatively or closing this question please explain so?