2dbi
Home/ClickUp/Group Anagrams
CClickUp·DSASDE-2Technical Phone Screen

Group Anagrams

Problem

Group strings that are anagrams of each other.

Example

["eat","tea","tan","ate"] -> [["eat","tea","ate"],["tan"]]

Constraints

  • 1 ≤ n ≤ 10^4

Approach

Char-count tuple key. Clean LC-medium expected.

added 6 days ago
LeadersAccount