GitHub

Bubble Sort

Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.
  • Worst Complexity : N^2
  • Average Complexity : N^2
  • Best Complexity : N
  • Space Complexity : 1
  • Method : Exchanging
  • Stable : Yes
27
19
6
68
33