Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
First Unique Character in a String
Bookmark
Input
Standard
Later Unique
No Unique
Custom
s
=
leetcode
l
e
e
t
c
o
d
e
0
1
2
3
4
5
6
7
count
(empty)
count every character, then find the first with count 1
algo
master
.
io
Step:
Count every character, then return the first one that appears exactly once
0 / 12
Input
Standard
Later Unique
No Unique
Custom
s
=
leetcode
0 / 12
l
e
e
t
c
o
d
e
0
1
2
3
4
5
6
7
count
(empty)
count every character, then find the first with count 1
algo
master
.
io
Step:
Count every character, then return the first one that appears exactly once