Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
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 1: Count Occurrences
Input
4
0
2
1
2
2
8
3
3
4
3
5
1
6
Count
0
1
0
2
0
3
0
4
0
5
0
6
0
7
0
8
algo
master
.
io
Step:
Start: Sort array using counting sort algorithm
0 / 24
Input
Standard
Small
Single Digit
All Same
Sorted
Custom
arr
=
[4, 2, 2, 8, 3, 3, 1]
0 / 24
Phase 1: Count Occurrences
Input
4
0
2
1
2
2
8
3
3
4
3
5
1
6
Count
0
1
0
2
0
3
0
4
0
5
0
6
0
7
0
8
algo
master
.
io
Step:
Start: Sort array using counting sort algorithm