Skip to content

Commit 04543d6

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ 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) {return;}
61+
if (i == j) {
62+
return;
63+
}
6264
int temp = arr[i];
6365
arr[i] = arr[j];
6466
arr[j] = temp;

0 commit comments

Comments
 (0)