Simple Python3 Solution using dictionary and sorted anagrams
The idea here is to use the sorted anagram as a key and the anagrams themselves as the values. In the end, after iterating through the list of words, you\'ll re
The idea here is to use the sorted anagram as a key and the anagrams themselves as the values. In the end, after iterating through the list of words, you\'ll return the values from the dictionary.\n```\nclass Solution:\n    def groupAnagrams(self, strs: List[str]) -> List[List[str]]:\n      anagrams = defaultdict(list)\n      for word in strs:\n        anagrams[\'\'.join(sorted(word))].append(word)\n      return list(anagrams.values())\n```
[]