1.

Bubble sort performs better as compared to cocktail sort.(a) True(b) FalseThe question was posed to me by my school teacher while I was bunking the class.I would like to ask this question from Sorting in division Sorting of Data Structures & Algorithms II

Answer»

Correct CHOICE is (b) False

The BEST EXPLANATION: Both BUBBLE sort and cocktail sort has the same time complexities. But cocktail sort has a comparatively better performance.



Discussion

No Comment Found

Related InterviewSolutions