/ Published in: C#
This algorithm is O(N*logN)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
bool equal = oldList.OrderBy(i => i).SequenceEqual(newList.OrderBy(i => i));
URL: http://stackoverflow.com/questions/50098/comparing-two-collections-for-equality