Super simple 6ms Java solution [READABLE]
\npublic List<List<String>> groupAnagrams(String[] strs) {\n\tMap<String, List<String>> map = new HashMap<>();\n\tfor(String str : strs) {\n\t\tchar[] chars = s
```\npublic List<List<String>> groupAnagrams(String[] strs) {\n\tMap<String, List<String>> map = new HashMap<>();\n\tfor(String str : strs) {\n\t\tchar[] chars = str.toCharArray();\n\t\tArrays.sort(chars);\n\n\t\tString sortedStr = new String(chars);\n\t\tmap.putIfAbsent(sortedStr, new ArrayList<>());\n\t\tmap.get(sortedStr).add(str);\n\t}\n\n\treturn new ArrayList<>(map.values());\n}\n```
[]