Re:LINQ Ruined My Favorite Interview Question
by moomin on Thursday July 11, 2013 @10:46AM
(#6026322)
You'll need to sort the result of frequencies: it's an unordered map.
In practice, if you use ->> and write neater LINQ, the code is very close. Although LINQ only has group and sum/reduce, no dedicated frequencies function.
In practice, if you use ->> and write neater LINQ, the code is very close. Although LINQ only has group and sum/reduce, no dedicated frequencies function.