From 0389ab80027167f05581a3e5169bd26b35bc6135 Mon Sep 17 00:00:00 2001 From: John Cheng Date: Tue, 23 May 2017 08:49:05 -0700 Subject: [PATCH] Update Quicksort.java Typo: "any" instead of "an". --- java/Chapter 11/Introduction/Quicksort.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/Chapter 11/Introduction/Quicksort.java b/java/Chapter 11/Introduction/Quicksort.java index 828361a1..9cdacd0e 100644 --- a/java/Chapter 11/Introduction/Quicksort.java +++ b/java/Chapter 11/Introduction/Quicksort.java @@ -10,7 +10,7 @@ public static void swap(int[] array, int i, int j) { } public static int partition(int arr[], int left, int right) { - int pivot = arr[(left + right) / 2]; // Pick a pivot point. Can be an element. + int pivot = arr[(left + right) / 2]; // Pick a pivot point. Can be any element. while (left <= right) { // Until we've gone through the whole array // Find element on left that should be on right