Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
11_sorts: more tight boundary for selectionSort() and remove minValue
It is for sure a[i] == a[j], when i == j. So we could skip those cases. And minValue could be represented by a[minIndex], so replace minValue with a[minIndex]. Signed-off-by: Wei Yang <[email protected]>
- Loading branch information