摘要: 题目描述 给定一个字符串数组,将字母异位词组合在一起。字母异位词指字母相同,但排列不同的字符串。 示例: 输入: ["eat", "tea", "tan", "ate", "nat", "bat"], 输出: [ ["ate","eat","tea"], ["nat","tan"], ["bat"] 阅读全文
posted @ 2018-06-04 21:48 FlyingWarrior 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合。 给出数字到字母的映射如下(与电话按键相同)。注意 1 不对应任何字母。 示例: 输入:"23" 输出:["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]. 说明: 阅读全文
posted @ 2018-06-04 21:26 FlyingWarrior 阅读(1280) 评论(0) 推荐(0) 编辑