更新图片链接
This commit is contained in:
4
problems/0017.电话号码的字母组合.md
Normal file → Executable file
4
problems/0017.电话号码的字母组合.md
Normal file → Executable file
@@ -11,7 +11,7 @@
|
||||
|
||||
给出数字到字母的映射如下(与电话按键相同)。注意 1 不对应任何字母。
|
||||
|
||||

|
||||

|
||||
|
||||
示例:
|
||||
* 输入:"23"
|
||||
@@ -64,7 +64,7 @@ const string letterMap[10] = {
|
||||
|
||||
例如:输入:"23",抽象为树形结构,如图所示:
|
||||
|
||||

|
||||

|
||||
|
||||
图中可以看出遍历的深度,就是输入"23"的长度,而叶子节点就是我们要收集的结果,输出["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user