Sorting algorithms
Various sorting algorithms are used for ordering elements in the array.
In this lecture, the basic bubble sort is visualized. The time complexity of this algorithm is O(n2), but more efficient ones run in O(nlogn).
Check out time complexity
- 1
- -1
- -2
- 5
- 2
- 9
- 0