InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is a variation of bubble sort?(a) selection sort(b) odd even sort(c) cocktail sort(d) stupid sortI had been asked this question in semester exam.Query is from Sorting topic in division Sorting of Data Structures & Algorithms II |
|
Answer» RIGHT choice is (b) ODD even sort The BEST explanation: Odd even sort is a variation of bubble sort. But unlike bubble sort, odd even sort traverses the array in TWO phases- odd phase and even phase. |
|