0
Dont understand something in Selection Sort Algorithm
Hi everyone, I don't understand a part of this algorithm, why t[min] = 12 whereas t[min] should be equal to 27. Because the first index is 0 so T[0] = 27 Thanks! https://code.sololearn.com/cMglLBQnVGUQ/?ref=app
1 Answer
0
We don't enter in the if condition when the index of min is 0 ? Because 0 != 1