We’re preparing your current view and syncing the latest data.
Given an array of strings, group the anagrams together. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. Return the answer as a list of groups of anagrams.
An array of strings strs.
A list of lists of strings, where each inner list contains strings that are anagrams of each other.
1 <= strs.length <= 10^4 0 <= strs[i].length <= 100 strs[i] consists of lowercase English letters.