Skip to content

Commit 66a2761

Browse files
Fix sorting comparator in CombinationSumTest
1 parent 79dc52b commit 66a2761

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ private static List<List<Integer>> norm(List<List<Integer>> x) {
1616
q.sort(Integer::compare);
1717
y.add(q);
1818
}
19-
y.sort(Comparator.<List<Integer>, Integer>comparing(List::size)
20-
.thenComparing(a -> a.toString()));
19+
y.sort(Comparator.<List<Integer>, Integer>comparing(List::size).thenComparing(a -> a.toString()));
2120
return y;
2221
}
2322

0 commit comments

Comments
 (0)