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