Dsa
Strings
Easy
String Anagram Grouping
Given a list of strings, group the anagrams together. You can return the answer in any order.
Example:
Input:
["eat","tea","tan","ate","nat","bat"]
Output:
[
["ate","eat","tea"],
["nat","tan"],
["bat"]
]
Note: Anagrams are words or phrases made by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
Key concepts
stringsanagramgrouping
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now