49. Group Anagrams
Medium
1896123FavoriteShare
Given an array of strings, group anagrams together.
Example:
Input: ["eat", "tea", "tan", "ate", "nat", "bat"]
,
Output:
[
["ate","eat","tea"],
["nat","tan"],
["bat"]
]
wx596330ff6d68f ©著作权
49. Group Anagrams
Medium
1896123FavoriteShare
Given an array of strings, group anagrams together.
Example:
Input: ["eat", "tea", "tan", "ate", "nat", "bat"]
,
Output:
[
["ate","eat","tea"],
["nat","tan"],
["bat"]
]
上一篇:二叉树--判断两棵树是否一样
下一篇:字符串--通配符*匹配
unordered_map,顾名思义,就是无序map,使用时可以当做STL的Hash表使用,时间复杂度可做到O(1)查询
是红黑树...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M