1.

Which of the following is a comparison based sort?(a) tree sort(b) radix sort(c) counting sort(d) pigeonhole sortI got this question during an interview.This key question is from Sorting in division Sorting of Data Structures & Algorithms II

Answer»

Correct ANSWER is (a) tree SORT

The explanation is: In tree sort, we need to compare elements as we insert them in the binary search tree. THUS it QUALIFIES as a comparison BASED sort.



Discussion

No Comment Found

Related InterviewSolutions