<aside> 💡 Algorithms for sorting a collection

</aside>

Here, I am going to divide them based on its time complexities.


Basics


Complexities

Stability

O(n²)


Selection Sort

Insertion Sort

Bubble Sort

O(N log N)


Merge Sort

Quick Sort

O(n)


Counting sort