muhammad-alamin1 / bubble-sort-algorithm-in-c-and-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bubble Sort Algorithm

  • Bubble 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. The pass through the list is repeated until the list is sorted.
  • Worst Complexity : O(n^2)
  • Space Complexity : O(1)
  • Average Complexity : O(n^2)

Bubble Sorting Algorithm

About


Languages

Language:C++ 54.5%Language:C 45.5%