Question DSA-SORT-0078
HardBucket sort on n uniformly distributed floats in [0, 1) with n buckets has what expected time?
- A.
O(n log n)
- B.
O(n²)
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Sorting question
Bucket sort on n uniformly distributed floats in [0, 1) with n buckets has what expected time?
O(n log n)
O(n²)
Sign up free to see the answer and a step-by-step explanation.
O(log n)
O(n)