Bubble Sort
Table of Contents
Bubble Sort
Time Complexity: O(n^2).
Concept: Repeatedly steps through the list, comparing adjacent elements and swapping them if they are in the wrong order.
Steps:
- Compare adjacent elements and swap them if they are out of order.
- Repeat the process until no swaps are made in a pass.