1.

How many comparisons will be made to sort the array arr = {1, 5, 3, 8, 2} using MSD radix sort?(a) 5(b) 7(c) 9(d) 0I got this question in an interview for internship.My question is taken from Sorting topic in section Sorting of Data Structures & Algorithms II

Answer»

Right option is (d) 0

Easiest explanation - As MSD RADIX sort is an EXAMPLE of 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