Loading

摘要: 题目链接:49. 字母异位词分组 思路:设置个哈希表,表键为排序后的字符串,表值为List,List中存放的字符串在排序后有相同的表键。 代码: class Solution { public List<List<String>> groupAnagrams(String[] strs){ Map< 阅读全文
posted @ 2020-12-14 13:18 yoyuLiu 阅读(32) 评论(0) 推荐(0) 编辑