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

Letter Combinations of a Phone Number

Arguments

  • digits - input digits

Examples

use leetcode_rust::problems::p000_0xx::p000_017::letter_combinations;

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