Given an array of strings, group anagrams together.
Example
Input: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”],
Output:
1 | [ |
Note
- All inputs will be in lowercase.
- The order of your output does not matter.
Code
1 | public List<List<String>> groupAnagrams(String[] strs) { |