2dbi
Home/Miro/Group Anagrams
MMiro·DSASWE-2Onsite – Coding 1

Group Anagrams

Problem

Group strings that are anagrams of each other.

Example

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

Constraints

  • 1 ≤ n ≤ 10^4

Approach

Char-count tuple key.

added 6 days ago
LeadersAccount