Please make the window wider for a better user experience

Selection Sort - Visual Representation

5
5
5
5
5
5
5
5
5
5
0
1
2
3
4
5
6
7
8
9

Explanation

Selection sort is a straightforward sorting algorithm that repeatedly selects the smallest (or largest) element from an unsorted portion of a list and moves it to the beginning (or end) of the list. The algorithm maintains two subarrays within the list.

Selection Sort