Skip to content

Commit 0357b9a

Browse files
refined code style issues and checked with clang format
1 parent dc82551 commit 0357b9a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/com/thealgorithms/shufflealogrithm/GroupShuffle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ private GroupShuffle() {
1515
* Returns an empty list if the group count exceeds the array length.
1616
*
1717
* @param array the input array to split into groups
18-
* @param k the number of groups to create
18+
* @param k the number of groups to create
1919
* @return a list of groups, where each group is a shuffled sublist of the input array
2020
*/
2121
public static List<List<Integer>> groupShuffle(int[] array, int k) {

src/main/java/com/thealgorithms/shufflealogrithm/ShuffleByRange.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private ShuffleByRange() {
1313
*
1414
* @param array the input array to shuffle
1515
* @param start starting index of the range to shuffle
16-
* @param end ending index of the range to shuffle
16+
* @param end ending index of the range to shuffle
1717
*/
1818
public static void shuffleRange(int[] array, int start, int end) {
1919
// Edge case handling

src/main/java/com/thealgorithms/shufflealogrithm/WeightedShuffle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ private WeightedShuffle() {
1212
/**
1313
* Shuffles elements based on their weights. Higher weight elements are more likely to appear earlier.
1414
*
15-
* @param array the input array to shuffle
15+
* @param array the input array to shuffle
1616
* @param weights the weights for each corresponding element in the array
1717
*/
1818
public static void weightedShuffle(int[] array, int[] weights) {

0 commit comments

Comments
 (0)