We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618abbf commit 84710a3Copy full SHA for 84710a3
algorithms/sorting/select_sort.m
@@ -2,7 +2,7 @@
2
function arrayToSort = select_sort(arrayToSort)
3
for i=1:length(arrayToSort)
4
%%smallest element in the unsorted list
5
- minimun_index=i;
+ minimum_index=i;
6
for j=i+1:length(arrayToSort)
7
if (arrayToSort(j) < arrayToSort(minimun_index))
8
minimun_index=j;
0 commit comments