bashbers / csharp-algorithms-hacktoberfest2018

Hacktoberfest repository which over time will include loads of c# algorithms.
https://hacktoberfest.digitalocean.com/
3 stars 29 forks source link

Counting sort and tests implemented #20

Closed ryan-johnson2 closed 6 years ago

ryan-johnson2 commented 6 years ago

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.

bashbers commented 6 years ago

Excellent, nice!