Implement this anagram grouping algorithm with a running time of O(n).
Anonymous
For each letter of the alphabet you could assign each letter a unique prime number, then for each word you would calculate the product of each prime number/letter in the word. This will result in a unique number that you could put into a hash table that contained a list of words that got entered under that product, then you would just dump the table.
Check out your Company Bowl for anonymous work chats.