86
Solution #1
•
Instantiate an indefinite map (hashed or
ordered -- it doesn't matter which) indexed by
String.
Use the map to collect the word
frequencies.
•
Allocate an array of map cursors, and then sort
the array in frequency order.