Skip to content

Commit

Permalink
Merge pull request #418 from VatsalSin/master
Browse files Browse the repository at this point in the history
Update Quick_sort.java
  • Loading branch information
Kavya-24 authored Oct 7, 2024
2 parents 3f6ddb9 + 4d04fbd commit dd9f7bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Java/Quick_sort.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static int partition(int array[], int low, int high) {

}

// swapt the pivot element with the greater element specified by i
// swap the pivot element with the greater element specified by i
int temp = array[i + 1];
array[i + 1] = array[high];
array[high] = temp;
Expand Down Expand Up @@ -70,4 +70,4 @@ public static void main(String args[]) {
System.out.println("Sorted Array in Ascending Order: ");
System.out.println(Arrays.toString(data));
}
}
}

0 comments on commit dd9f7bc

Please sign in to comment.