News for hackers. Stuff that matters.
Re:LINQ Ruined My Favorite Interview Question by sterling312 on Friday July 12, 2013 @01:22AM (#6031064)
meh, just use sum instead of counter

sorted([(i,sum([i==j for j in s.split()])) for i in list(set(s.split()))],key=lambda x:x[1],reverse=True)[:10]

There are no comments on this comment yet.