Computer scienceAlgorithms and data structuresAlgorithmsArray algorithmsSorting algorithms

Counting sort

Follow the order

Report a typo

Please sort the steps of the stable counting sort in the correct order:

Put the items in the correct order
Modify the frequency array to the cumulative frequency array
Determine the range of the input array
Count the occurrences of each elements
Create an empty frequency array
Prepare the output array using the cumulative frequency array

Create a free account to access the full topic