Group anagrams
Group the words in a list that are anagrams of one another, keeping repeated words. Build the grouping key from letter counts instead of sorting each word.
No answer yet. Write the first one; the best answer gets endorsed.
Group the words in a list that are anagrams of one another, keeping repeated words. Build the grouping key from letter counts instead of sorting each word.