Back to DSA sheet

Group Anagrams

MediumStrings
Open on LeetCodeAmazonGoogleMeta

Group the strings that are anagrams of one another. Return the groups in any order.

Constraints
  • 1 <= strs.length <= 10^4
  • 0 <= strs[i].length <= 100
  • strs[i] consists of lowercase English letters
Sheets
Blind 75Grind 75NeetCode 150NeetCode 250
group-anagrams.cpp
Loading editor
Custom input (stdin)
Output

Run your code to see its output.