Back
Group Anagrams
Given an array of strings strs, group the anagrams together. You can return the answer in any order.
Java
Description
Solution
My Code
Group Anagrams
Given an array of strings strs, group the anagrams together. You can return the answer in any order.
Example 1:
Input:
["eat","tea","tan","ate","nat","bat"]
Output:
[["eat","tea","ate"],["tan","nat"],["bat"]]
Viz
Tests
Run
Input
Standard
Empty
Single
Custom
["eat","tea","tan","ate","nat","bat"]
arr =
["eat","tea","tan","ate","nat","bat"]
Input Array
eat
tea
tan
ate
nat
bat
Anagram Groups (HashMap)
Variables
No variables to display
Depth
Function Call
1
groupAnagrams(strs=[6])
0/19
0.5x
1x
2x
4x