Skip to content

Commit 9bc17d8

Browse files
committed
Cleanup fix
Changed class name back to Combination
1 parent 77f1345 commit 9bc17d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/thealgorithms/backtracking/CombinationGenerator.java renamed to src/main/java/com/thealgorithms/backtracking/Combination.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
* Finds all combinations of a given array that are a specific length by using backtracking.
1111
* @author Alan Piao (<a href="https://github.com/cpiao3">git-Alan Piao</a>)
1212
*/
13-
public final class CombinationGenerator {
13+
public final class Combination{
1414
// Default private constructor to prevent instantiation
1515

16-
private CombinationGenerator() {
16+
private Combination() {
1717
}
1818

1919
private static int length; //Define length outside all methods so that it can be accessed anywhere in the class.
@@ -38,7 +38,7 @@ public static <T> List<TreeSet<T>> combination(T[] arr, int desiredLength) {
3838
return result;
3939
}
4040

41-
41+
4242
/**
4343
* Backtrack all possible combinations of a given array
4444
* @param arr the array from earlier.

0 commit comments

Comments
 (0)