You are viewing a single comment's thread. Return to all comments →
Two anagrams are not just two duplicated strings, the second string can also have letters in random order.
Do you sort the strings before grouping them?
Sherlock and Anagrams
You are viewing a single comment's thread. Return to all comments →
Two anagrams are not just two duplicated strings, the second string can also have letters in random order.
Do you sort the strings before grouping them?