Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Letter Combinations of a Phone Number
Example 1: "23"
Single Digit: "2"
With 4-letter keys: "79"
Three Digits: "234"
Custom
digits
=
23
2
abc
3
def
""
""
""
""
""
""
""
""
""
""
""
""
""
Step:
Start: Find all letter combinations for digits
Variable
Value
digits
"23"
result
-
mapping
Object {8 keys}
Depth
Function Call
1
letterCombinations(23, {"2":"abc","3":"def","4":"ghi","5":"jkl","6":"mno","7":"pqrs","8":"tuv","9":"wxyz"})
0 / 53
Example 1: "23"
Single Digit: "2"
With 4-letter keys: "79"
Three Digits: "234"
Custom
digits
=
23
0 / 53
2
abc
3
def
""
""
""
""
""
""
""
""
""
""
""
""
""
Step:
Start: Find all letter combinations for digits
Visualization
Variables