Merge pull request #2546 from Hellofafar/patch-1

Update 0017.电话号码的字母组合.md
This commit is contained in:
程序员Carl 2024-05-30 10:26:49 +08:00 committed by GitHub
commit a6f9835db4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ public:
}
};
```
* 时间复杂度: O(3^m * 4^n),其中 m 是对应四个字母的数字个数n 是对应三个字母的数字个数
* 时间复杂度: O(3^m * 4^n),其中 m 是对应三个字母的数字个数n 是对应四个字母的数字个数
* 空间复杂度: O(3^m * 4^n)
一些写法,是把回溯的过程放在递归函数里了,例如如下代码,我可以写成这样:(注意注释中不一样的地方)