What is the worst case complexity of selection sort?

Answer: D
Explanation: Selection sort creates a sub-list, LHS of the ‘min’ element is already sorted and RHS is yet to be sorted. Starting with the first element the ‘min’ element moves towards the final element.
 

Tìm kiếm

Back
Top