r/dailyprogrammer • u/rya11111 3 1 • Jun 29 '12
[6/29/2012] Challenge #70 [easy]
Write a program that takes a filename and a parameter n and prints the n most common words in the file, and the count of their occurrences, in descending order.
Request: Please take your time in browsing /r/dailyprogrammer_ideas and helping in the correcting and giving suggestions to the problems given by other users. It will really help us in giving quality challenges!
Thank you!
22
Upvotes
View all comments
1
u/Erocs Jul 02 '12 edited Jul 07 '12
Scala 2.9
I'm just learning Scala so there is likely to be a more concise solution.