+2 votes
in Class 12 by kratos

Consider the following unsorted list :

[22, 54, 12, 90, 55, 78]

Write the passes of selection sort for sorting the list in ascending order till the 3rd iteration.

1 Answer

+1 vote
by kratos
 
Best answer

Pass 1: [12, 54, 22, 90, 55, 78]

Pass 2 : [12, 22, 54, 90, 55, 78]

Pass 3 : [12, 22, 54, 90, 55, 78]

...