Skip to content

Commit 799d7dc

Browse files
Updated - removed the print method
1 parent 27bc1fb commit 799d7dc

File tree

2 files changed

+3
-62
lines changed

2 files changed

+3
-62
lines changed

src/main/java/com/thealgorithms/misc/ShuffleArray.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.thealgorithms.misc;
2+
23
import java.util.Random;
4+
35
/**
46
* The Fisher-Yates (Knuth) Shuffle algorithm randomly permutes an array's
57
* elements, ensuring each permutation is equally likely.
@@ -18,6 +20,7 @@ public final class ShuffleArray {
1820
// Prevent instantiation
1921
private ShuffleArray() {
2022
}
23+
2124
/**
2225
* This method shuffles an array using the Fisher-Yates algorithm.
2326
*
@@ -32,15 +35,4 @@ public static void shuffle(int[] arr) {
3235
arr[j] = temp;
3336
}
3437
}
35-
/**
36-
* This method prints the elements of the array.
37-
*
38-
* @param arr is the input array to be printed
39-
*/
40-
public static void printArray(int[] arr) {
41-
for (int num : arr) {
42-
System.out.print(num + " ");
43-
}
44-
System.out.println();
45-
}
4638
}

src/main/java/com/thealgorithms/slidingwindow/MinSumKSizeSubarray.java

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)