B4Coder
0%
LessonAbout 8 min

Chapter 10 · Lesson 3 of 5

03. Bubble sort

Compare each pair of neighbours and swap them if they're in the wrong order. Repeat until a whole pass makes no swaps.

Opening the lesson…