//insertionSort void insertionSort(int arr[],int n){ for(int i=1;i0&&temparr[i]){ min=i; } } int temp=arr[min]; arr[min]=arr[k]; arr[k]=temp; } }