algorithm · Level 2 · 20 min
Given an array of strings strs, group the anagrams together. An anagram is a word formed by rearranging the letters of another.
strs (array of strings).- `1 <= strs.length <= 10^4` - `0 <= strs[i].length <= 100` - `strs[i]` consists of lowercase English letters.
Return array of groups (array of arrays of strings).