72. Group Anagrams
MediumHashing
Group the words in words that are anagrams of each other. Sort the words inside each group, and order the groups by their first word.
Example 1
Input: words = ["eat", "tea", "tan", "ate", "nat", "bat"] Output: [["ate", "eat", "tea"], ["bat"], ["nat", "tan"]]
Constraints
1 ≤ words.length ≤ 10⁴