Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Length of Last Word
Bookmark
Input
Standard
Trailing Spaces
No Trailing Spaces
Custom
s
=
Hello World
H
0
e
1
l
2
l
3
o
4
␣
5
W
6
o
7
r
8
l
9
d
10
algo
master
.
io
Step:
Start: Find the length of the last word in "Hello World"
0 / 13
Input
Standard
Trailing Spaces
No Trailing Spaces
Custom
s
=
Hello World
0 / 13
H
0
e
1
l
2
l
3
o
4
␣
5
W
6
o
7
r
8
l
9
d
10
algo
master
.
io
Step:
Start: Find the length of the last word in "Hello World"