Eliminated swap counting, got bubble, selection, and insertion sort working

This commit is contained in:
2020-05-31 09:49:28 -05:00
parent c680ec7671
commit 4574231dcb
15 changed files with 1111303 additions and 75 deletions

View File

@@ -15,7 +15,7 @@ public class SelectionSorter extends Sorter {
currentMinIndex = j;
}
}
swap(numbers[i],numbers[currentMinIndex]);
swap(i,currentMinIndex);
}
}
}