Algorithm Series 🖍📄
Name: Bubble Sort
Type: Comparison sort
Best For: Small datasets
Complexity: O(n²) average and worst-case
How It Works: 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.
〰️〰️〰️〰️〰️〰️
#Algorithm #BubbleSort
@ProgrammingTip
Post #729
16.8K