Skip to content

Commit 8238ad8

Browse files
Refactor norm method to accept Iterable instead of List
1 parent 08aafc5 commit 8238ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/thealgorithms/backtracking/CombinationSumTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import org.junit.jupiter.api.Test;
99

1010
class CombinationSumTest {
11-
12-
private static List<List<Integer>> norm(List<List<Integer>> x) {
11+
12+
private static List<List<Integer>> norm(Iterable<List<Integer>> x) {
1313
List<List<Integer>> y = new ArrayList<>();
1414
for (var p : x) {
1515
var q = new ArrayList<>(p);

0 commit comments

Comments
 (0)