pub fn letter_combinations(digits: String) -> Vec<String>
Expand description

电话号码的字母组合

参数

  • digits - 输入的数字序列

示例

use leetcode_rust::problems_cn::p000_0xx::p000_017::letter_combinations;

let input = String::from("2");
let output = letter_combinations(input);
assert_eq!(output, vec!["a", "b", "c"]);