1.

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.

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]



Discussion

No Comment Found

Related InterviewSolutions