Skip to content

Commit cab6e2a

Browse files
committed
Build issue fix for swap function
1 parent 1ba58d2 commit cab6e2a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/com/thealgorithms/randomized/RandomizedQuickSort.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ private static int partition(int[] arr, int low, int high) {
5858
*/
5959
private static void swap(int[] arr, int i, int j) {
6060
// Skip if indices are the same
61-
if (i == j) {
62-
return;
63-
}
61+
if (i == j) {return;}
6462
int temp = arr[i];
6563
arr[i] = arr[j];
6664
arr[j] = temp;

0 commit comments

Comments
 (0)