Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Number of Matching Subsequences
Bookmark
Input
Standard
Complex
Custom
s
=
abcde
,
words
=
[a, bb, acd, ace]
String s:
a
b
c
d
e
Buckets:
(all buckets empty)
Words:
a
word 0
bb
word 1
acd
word 2
ace
word 3
count = 0
algo
master
.
io
Step:
Start: Count matching subsequences using bucket approach
0 / 22
Input
Standard
Complex
Custom
s
=
abcde
,
words
=
[a, bb, acd, ace]
0 / 22
String s:
a
b
c
d
e
Buckets:
(all buckets empty)
Words:
a
word 0
bb
word 1
acd
word 2
ace
word 3
count = 0
algo
master
.
io
Step:
Start: Count matching subsequences using bucket approach