Skip to content

Commit

Permalink
Update Quick_sort.java
Browse files Browse the repository at this point in the history
  • Loading branch information
VatsalSin authored Oct 7, 2024
1 parent 3f6ddb9 commit 4d04fbd
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 4d04fbd

Please sign in to comment.