Selection Sort
Key Idea
Each outer loop selects the smallest element and places it in the beginning.
Code
Time Complexity
The analysis is similar to bubble sort. O(n^2).
Last updated
Each outer loop selects the smallest element and places it in the beginning.
The analysis is similar to bubble sort. O(n^2).
Last updated