leetcode 49. 字母异位词分组
This commit is contained in:
@@ -22,7 +22,7 @@ import java.util.*;
|
||||
*/
|
||||
public class GroupAnagrams {
|
||||
/**
|
||||
* 单词字母排序后的单词都是一样的
|
||||
* 字母异位词用字母排序后的单词都是一样的
|
||||
*/
|
||||
static public List<List<String>> groupAnagrams(String[] strs) {
|
||||
Map<String, List<String>> map = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user