Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
![]()
Input:Digit string "23"
Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].
Note:
Although the above answer is in lexicographical order, your answer could be in any order you want.
方法一:递归调用
public List<String> letterCombinations(String digits) {
List<String> result = ne

给定一个数字字符串,返回所有可能的字母组合。提供了一个数字到字母的映射,你可以以任意顺序返回答案。
订阅专栏 解锁全文
301

被折叠的 条评论
为什么被折叠?



