What is the bidirectional variant of selection sort?
What is the bidirectional variant of selection sort? Correct Answer cocktail sort
A bidirectional variant of selection sort is called cocktail sort. It’s an algorithm which finds both the minimum and maximum values in the array in every pass. This reduces the number of scans of the array by a factor of 2.
মোঃ আরিফুল ইসলাম
Feb 20, 2025