valintasortauksen
Valintasortaus, also known as selection sort, is a simple comparison-based sorting algorithm. It works by repeatedly finding the minimum element from the unsorted part of the list and putting it at the beginning. This process is continued until the entire list is sorted.
The algorithm divides the input list into two parts: a sorted sublist which is built up from
This process is repeated for each position in the list. For a list of n elements, selection