Which of the following algorithm is stable?

Answer: d
Explanation: Out of the given algorithms only cube sort is stable. This implies that the relative position of equal valued elements in the input and sorted array remains the same.
 

Tìm kiếm

Back
Top