LeetCode 49: Group Anagrams — Step-by-Step Visual Trace
Medium — Hash Table | String | Sorting
The Problem
Group anagrams together from an array of strings, where anagrams are words that contain the same characters in different orders.
Approach
Use a hash map where the key is the sorted version of each wo...
blog.tracelit.dev1 min read