Sorting Python solution, beats 100%
Nothing fancy, just a straightforward solution using a dictionary.\n\nclass Solution(object):\n    def groupAnagrams(self, strs):\n        """\n        :type st
Nothing fancy, just a straightforward solution using a dictionary.\n```\nclass Solution(object):\n    def groupAnagrams(self, strs):\n        """\n        :type strs: List[str]\n        :rtype: List[List[str]]\n        """\n        anas = {}\n        for string in strs:\n            s = ''.join(sorted(string))\n            if s in anas:\n                anas[s].append(string)\n            else:\n                anas[s] = [string]\n        return [ anas[x] for x in anas ]\n            \n```
[]