Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Letter Combinations of a Phone Number
1
letterCombinations(23, {"2":"ab...
Example 1: "23"
Single Digit: "2"
With 4-letter keys: "79"
Three Digits: "234"
Custom
digits
=
23
a
d
e
f
b
d
e
f
c
d
e
f
1
2
a
b
c
3
d
e
f
4
g
h
i
5
j
k
l
6
m
n
o
7
p
q
r
s
8
t
u
v
9
w
x
y
z
digits
2
3
current
result
0/9
Step:
Start: Find all letter combinations for digits
0 / 53
Example 1: "23"
Single Digit: "2"
With 4-letter keys: "79"
Three Digits: "234"
Custom
digits
=
23
0 / 53
a
d
e
f
b
d
e
f
c
d
e
f
1
2
a
b
c
3
d
e
f
4
g
h
i
5
j
k
l
6
m
n
o
7
p
q
r
s
8
t
u
v
9
w
x
y
z
digits
2
3
current
result
0/9
Step:
Start: Find all letter combinations for digits
1
letterCombinations(23, {"2":"ab...