Sort using selection sort


Given an array. You need to sort the integers in array with selection sort. And return them in an array. Selection sort program for selection sort to sort numbers. Selection sort algorithm to arrange numbers of an array in ascending order.


If array is [1,4,5,7,2,9,4] output must be [1,2,4,4,5,7,9].

Contributed by Erkan Ercan