Pocket Gems interview question

How would you implement a top 3 word count in a text editor application?

Interview Answer

Anonymous

21 Oct 2012

Using Trie tree/Hash along with min heap of size 3