News for hackers. Stuff that matters.
Re:LINQ Ruined My Favorite Interview Question by shill on Thursday July 11, 2013 @02:19PM (#6027967)
> I'd appreciate any advice on my solution.

You should always compare your results to what is expected. For a problem like this, use a small set of test data that can easily be counted and sorted in your head or on paper.

You forgot reverse=True and your results show the 10 least common words. ;)

This kind of error happens to all of us. That's why we have unit tests and QA teams. If you made this mistake during an interview I wouldn't give it much importance and we would have a good laugh about it.

Re:LINQ Ruined My Favorite Interview Question by spenuke on Thursday July 11, 2013 @02:37PM (#6028154)
Ha, nice! Funny you should mention that. I did exactly that when tooling around in the repl and forgot the reverse kw, saw something fishy, and fixed it. Promptly forgot it again when I typed it in this comment. :)