Skip to content

Commit 6a64e74

Browse files
committed
Added test
1 parent d0268db commit 6a64e74

File tree

1 file changed

+16
-0
lines changed
  • src/test/java/g3401_3500/s3414_maximum_score_of_non_overlapping_intervals

1 file changed

+16
-0
lines changed

src/test/java/g3401_3500/s3414_maximum_score_of_non_overlapping_intervals/SolutionTest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,20 @@ void maximumWeight3() {
4646
List.of(List.of(4, 4, 1), List.of(2, 5, 3), List.of(2, 3, 2))),
4747
equalTo(new int[] {0, 2}));
4848
}
49+
50+
@Test
51+
void maximumWeight4() {
52+
assertThat(
53+
new Solution()
54+
.maximumWeight(
55+
List.of(
56+
List.of(19, 23, 23),
57+
List.of(19, 23, 40),
58+
List.of(1, 16, 31),
59+
List.of(16, 18, 31),
60+
List.of(14, 20, 22),
61+
List.of(14, 22, 5),
62+
List.of(23, 24, 23))),
63+
equalTo(new int[] {1, 2}));
64+
}
4965
}

0 commit comments

Comments
 (0)