Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Is Subsequence
Bookmark
Input
Example 1
No Match
Empty s
Exact Match
Custom
s
=
abc
,
t
=
ahbgdc
s:
a
b
c
0
1
2
t:
a
h
b
g
d
c
0
1
2
3
4
5
algo
master
.
io
Step:
Start: Check if s="abc" is a subsequence of t="ahbgdc"
0 / 24
Input
Example 1
No Match
Empty s
Exact Match
Custom
s
=
abc
,
t
=
ahbgdc
0 / 24
s:
a
b
c
0
1
2
t:
a
h
b
g
d
c
0
1
2
3
4
5
algo
master
.
io
Step:
Start: Check if s="abc" is a subsequence of t="ahbgdc"