[CS Fundamentals] Sorting Algorithms
Selection Sort Selection sort is the simplest way to sort an array. Pretend that index 0 is the smallest, and we look at each element. We select the smallest element from other index and swap the two elements. array = [5, 7, 9, 0, 3, 1, 6, 2, 4, 8] ...
May 12, 20254 min read2
![[CS Fundamentals] Sorting Algorithms](https://cdn.hashnode.com/res/hashnode/image/upload/v1746973590876/fab37371-1496-42ef-950b-432e7637c89e.png)