Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Reverse String
Bookmark
Extra Array
Two Pointers
Recursion
Input
hello
HannaH
ABCD
Custom
s
=
hello
s
0
1
2
3
4
h
e
l
l
o
result
s
0
1
2
3
4
h
e
l
l
o
result
s
0
1
2
3
4
h
e
l
l
o
result
s
0
1
2
3
4
h
e
l
l
o
n-1-i
result
0
1
o
l
i
s
0
1
2
3
4
h
e
l
l
o
n-1-i
result
0
1
2
o
l
l
i
s
0
1
2
3
4
h
e
l
l
o
n-1-i
result
0
1
2
3
o
l
l
e
i
s
0
1
2
3
4
o
e
l
l
o
i
result
0
1
2
3
4
o
l
l
e
h
i
s
0
1
2
3
4
o
l
l
l
o
i
result
0
1
2
3
4
o
l
l
e
h
i
s
0
1
2
3
4
o
l
l
l
o
i
result
0
1
2
3
4
o
l
l
e
h
i
s
0
1
2
3
4
o
l
l
e
h
i
result
0
1
2
3
4
o
l
l
e
h
i
s
0
1
2
3
4
o
l
l
e
h
result
0
1
2
3
4
o
l
l
e
h
algo
master
.
io
Step:
Start: reverse "hello" using a second array
0 / 12
Input
hello
HannaH
ABCD
Custom
s
=
hello
0 / 12
algo
master
.
io
Step:
Start: reverse "hello" using a second array