leetcode 49 Group Anagrams
2018-07-14
阅读 1 分钟
1.4kGiven an array of strings, group anagrams together.题目要求输入一个字符串数组,我们要将由同样字母组成的字符串整理到一起,然后以如下例子中的格式输出。不需要关注输出的顺序,所有的输入都是小写。Example:Input: ["eat", "tea", "tan", "ate", "nat", "bat"],Output:[ ["ate","eat","tea"], ["nat","tan"], ["b...