[x] Have you followed the guidelines in our Readme.md document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Have you created tests for your algorithm?
If you can check all of the above, congrats! :sparkles:
Description:
Counting sort is an algorithm that uses keys related to the values in the list to be sorted in order to create a sorted version of the list. The algorithm first generates an array that counts the number of occurrences of each value in the list. Next the algorithm calculates the starting position in the sorted array for each key. Last it iterates over the keys moving each value into its sorted order in an output array.
Issue: #2
If you can check all of the above, congrats! :sparkles:
Description:
Counting sort is an algorithm that uses keys related to the values in the list to be sorted in order to create a sorted version of the list. The algorithm first generates an array that counts the number of occurrences of each value in the list. Next the algorithm calculates the starting position in the sorted array for each key. Last it iterates over the keys moving each value into its sorted order in an output array.