Sorting Algorithms

Bubble Sort

Bubble sort explained: how neighbouring swaps carry the largest item to the end each pass, when to stop early, why it is O(n²), and a worked Python example.

  • 7 min read
  • 5 questions
  • +35 XP

What should we explain next?

Got a concept you want explained with cats? Tell us.

All videos