sfun28
asked on
LINQ: Distinct, Ordered array. algorithm speed
Folks,
I'm looking to take an array of integers and produce a second array that contains the unique integers from the first array and sorts them.
Is it faster to do Distinct().OrderBy( n => n)
or OrderBy(n => n).Distinct()
or are these equivalent?
I'm looking to take an array of integers and produce a second array that contains the unique integers from the first array and sorts them.
Is it faster to do Distinct().OrderBy( n => n)
or OrderBy(n => n).Distinct()
or are these equivalent?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER