What is the worst space complexity of bucket sort (k = number of buckets)?
(a) O(n + k)
(b) O(n.k)
(c) O(n^2)
(d) O(n log n)
This question was addressed to me in an interview for internship.
Query is from Sorting in section Sorting of Data Structures & Algorithms II