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