capitalization

This commit is contained in:
2020-07-03 17:27:57 -05:00
parent d5aa4b8243
commit 0f359e6073

View File

@@ -11,14 +11,14 @@ public class WordQuickSorter extends Sorter{
}
void sort() {
quicksort(0, words.length-1);
quickSort(0, words.length-1);
}
void quicksort(int lowIndex, int highIndex) {
void quickSort(int lowIndex, int highIndex) {
if (lowIndex < highIndex) {
int pivot = partition(lowIndex, highIndex);
quicksort(lowIndex, pivot-1);
quicksort(pivot+1, highIndex);
quickSort(lowIndex, pivot-1);
quickSort(pivot+1, highIndex);
}
}