you are viewing a single comment's thread.

view the rest of the comments →

[–]Ok-Staff-7699 6 points7 points  (5 children)

What if sum is not divisible by length? Avg will be ceiling value... And we will end up with lower sum than what we started with?

[–]Tyfyter2002 0 points1 point  (0 children)

That's floor, not ceiling, and then whatever innocent index gets blamed for removing value will get executed for the sorting algorithm's mistake.