Eliminated swap counting, got bubble, selection, and insertion sort working
This commit is contained in:
@@ -15,7 +15,7 @@ public class SelectionSorter extends Sorter {
|
||||
currentMinIndex = j;
|
||||
}
|
||||
}
|
||||
swap(numbers[i],numbers[currentMinIndex]);
|
||||
swap(i,currentMinIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user