InterviewSolution
Saved Bookmarks
| 1. |
Which of the following sorting algorithm is only applicable to positive integers?(a) quick sort(b) heap sort(c) bead sort(d) strand sortI have been asked this question in an internship interview.Origin of the question is Sorting topic in section Sorting of Data Structures & Algorithms II |
|
Answer» CORRECT answer is (c) bead sort To EXPLAIN: Bead sort algorithm is only applicable to positive INTEGERS. This is because it works by placing NUMBER of beads equal to key VALUE, in each row. |
|