Skip to content

Commit 9bd6749

Browse files
committed
Clang formatting for swap function
1 parent 4798de9 commit 9bd6749

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
@@ -57,9 +57,7 @@ private static int partition(int[] arr, int low, int high) {
5757
* @param j the second index
5858
*/
5959
private static void swap(int[] arr, int i, int j) {
60-
if (i == j) {
61-
return;
62-
}
60+
if (i == j) return;
6361
int temp = arr[i];
6462
arr[i] = arr[j];
6563
arr[j] = temp;

0 commit comments

Comments
 (0)