Posts

Showing posts with the label Anagram

Anagram Problem - Grouping all anagrams [reviewed]

 Question  Given a list of strings, return a list of lists of strings that groups all anagrams.   Ex. given {trees, bike, cars, steer, arcs}   return {{cars, arcs}, {bike}, {tree, steer}}   m = # of words   n = length of longest word