Posts by giusti • 136 points
1 post
-
2
votes1
answer251
viewsA: Bucket Sort - C
Your code is incorrect. This does not give you the number of buckets: nbaldes = (maior - menor) / TAM + 1; In the case your vector has values less than 100 (which is the value of TAM), then it will…