Skip to content

Commit 23fc7ef

Browse files
Fix sorting comparator for list of integers
1 parent 5c90154 commit 23fc7ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +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.comparingInt(List::size).thenComparing(Object::toString));
19+
y.sort(Comparator.<List<Integer>>comparingInt(List::size).thenComparing(Object::toString));
2020
return y;
2121
}
2222

0 commit comments

Comments
 (0)