We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
As the despription says, there's no need to sort anything. Just create a new empty array 0-100 and loop through the list of the provided numbers. For each number, then do array[x]++ to count it. That's all there is to it. My solution in C#:
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →
As the despription says, there's no need to sort anything. Just create a new empty array 0-100 and loop through the list of the provided numbers. For each number, then do array[x]++ to count it. That's all there is to it. My solution in C#: