#49

Group Anagrams

medium · 72.2% accepted · 21,903 likes · top 81%

array · hash table · string · sorting

⊣ practice⊣ quiz⊣ open on leetcode ↗

Description

Given an array of strings strs, group the anagrams together. You can return the answer in any order.

Solution