Question DSA-SORT-0060
MediumHow many passes does bucket sort need when n uniformly distributed numbers are spread into n buckets?
- A.
log n passes
- B.
One distribution pass, then small sorts inside buckets, O(n) expected
- C.
Sign up free to see the answer and a step-by-step explanation.