Back to Question

Group Anagrams

Question Explain

Given an array of strings `strs`, group the anagrams together. You can return the answer in any order. Use a HashMap where the key is the sorted string.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.