This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
So we are going to implement selection sort. | |
In this we select smallest element and move it to the sorted subarray of the main array. | |
We repeat it several times until whole array is sorted. | |
*/ | |
void selectionSort(int arr[], int n){ | |
int i,j,min; | |
for(i=0;i<n-1i++){ |