Key Sorting Algorithms Every Coder Should Know - 1
🫧 1. Bubble Sort
Compare adjacent pairs of elements in an array and swap them if they are in the wrong order, gradually moving larger elements to the end of the array.
1.1. Time Complexity
Average / Worst case: O(n^2)
Best case: O(n) (already so...
ejjung.hashnode.dev2 min read