0017. 电话号码的字母组合 #265
Replies: 1 comment
|
很好的教程。但是最后的时间复杂度分析有一个typo: 一个建议: 毕竟这种Python 等字符串不可变的语言中,每次回溯时的字符串拼接操作 时间复杂度这样应该更准确:O(L × 3m × 4n) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
0017. 电话号码的字母组合
--- 0017. 电话号码的字母组合 标签:哈希表、字符串、回溯 难度:中等 题目链接 0017. 电话号码的字母组合 - 力扣 题目大意 描述:给定一个只包含数字 2~9 的字符串 digits。给出数字到字母的映射如下(与电话按键相同)。注意 1 不对应任何字母。 要求:返回字符串 digits 在九宫格键盘上所能表示的所有字母组合。答案可以按 ...
https://algo.itcharge.cn/solutions/0001-0099/letter-combinations-of-a-phone-number/
All reactions