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
Group strings that are anagrams of each other.
["eat","tea","tan"] -> [["eat","tea"],["tan"]]
Char-count tuple key.