Skip to content
RED SAGSkills
easy5 pts · first answer countssorting-and-searching

Trace one bubble sort pass

Bubble sort makes one left-to-right pass over [5, 1, 4, 2, 8], swapping neighbours that are out of order. What does the array look like after this first pass?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions