Group Anagrams
Medium📝 Description
Group words that are anagrams together
Input Format
List of strings
Output Format
List of grouped anagrams
Constraints
1 ≤ strs.length ≤ 10^4
🔍 Sample Input
["eat","tea","tan","ate","nat","bat"]
✅ Sample Output
[["eat","tea","ate"],["tan","nat"],["bat"]]
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run