capitalization
This commit is contained in:
@@ -11,14 +11,14 @@ public class WordQuickSorter extends Sorter{
|
|||||||
}
|
}
|
||||||
|
|
||||||
void sort() {
|
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) {
|
if (lowIndex < highIndex) {
|
||||||
int pivot = partition(lowIndex, highIndex);
|
int pivot = partition(lowIndex, highIndex);
|
||||||
quicksort(lowIndex, pivot-1);
|
quickSort(lowIndex, pivot-1);
|
||||||
quicksort(pivot+1, highIndex);
|
quickSort(pivot+1, highIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user