- 40 Algorithms Every Programmer Should Know
- Imran Ahmad
- 55字
- 2025-04-04 12:59:10
Bubble Sort
Bubble sort is the simplest and slowest algorithm used for sorting. It is designed in a way that the highest value in its list bubbles its way to the top as the algorithm loops through iterations. As its worst-case performance is O(N2), as discussed previously, it should be used for smaller datasets.