Skip to main content
1 vote

Pset 3 -> Counting Sort - need tips to find my error

If you array is declared with 65536 buckets, then aux_list[65536] is outside the bounds (remembering that arrays are zero-indexed). So what happens in your loop when i == 65536?
curiouskiwi's user avatar
  • 18.7k
1 vote

cs50x pset3 find - Need help with the counting sort

One problem I see with your sort function is that you've made a third array (sortedArray[]) and filled it with sorted numbers from values[], but then you didn't do anything else with it. Your function ...
ArtemPetrov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible