1.

How many comparisons will be made to sort the array arr={1, 5, 3, 8, 2} using bucket sort?(a) 5(b) 7(c) 9(d) 0The question was asked in class test.This is a very interesting question from Sorting topic in portion Sorting of Data Structures & Algorithms II

Answer»

The CORRECT option is (d) 0

To explain: As bucket sort is an example of a non-comparison sort so it is ABLE to sort an array WITHOUT MAKING any comparison. So the ANSWER should be 0.



Discussion

No Comment Found

Related InterviewSolutions