Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Counting Sort
Bookmark
Input
Standard
Small
Single Digit
All Same
Sorted
Custom
arr
=
[4, 2, 2, 8, 3, 3, 1]
phase =
count
values =
1
..
8
arr
0
1
2
3
4
5
6
4
2
2
8
3
3
1
count
0
1
0
2
0
3
0
4
0
5
0
6
0
7
0
8
output
0
1
2
3
4
5
6
algo
master
.
io
Step:
Start: sort the array with counting sort
0 / 30
Input
Standard
Small
Single Digit
All Same
Sorted
Custom
arr
=
[4, 2, 2, 8, 3, 3, 1]
0 / 30
phase =
count
values =
1
..
8
arr
0
1
2
3
4
5
6
4
2
2
8
3
3
1
count
0
1
0
2
0
3
0
4
0
5
0
6
0
7
0
8
output
0
1
2
3
4
5
6
algo
master
.
io
Step:
Start: sort the array with counting sort