Group Anagrams

Problem

Group anagrams together.

Input / Output

  • Input: an array of strings.
  • Output: the strings partitioned into groups, where each group contains strings that are anagrams of one another.

Constraints

  • 1 ≤ n ≤ 10^4

Example

["eat","tea","tan"] -> [["eat","tea"],["tan"]]
added …
LeaderboardSalaryAccount