Skip to content

Commit c2a1554

Browse files
committed
Added test
1 parent a71e493 commit c2a1554

File tree

1 file changed

+9
-0
lines changed
  • src/test/java/g3501_3600/s3501_maximize_active_section_with_trade_ii

1 file changed

+9
-0
lines changed

Diff for: src/test/java/g3501_3600/s3501_maximize_active_section_with_trade_ii/SolutionTest.java

+9
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,13 @@ void maxActiveSectionsAfterTrade4() {
3939
.maxActiveSectionsAfterTrade("01010", new int[][] {{0, 3}, {1, 4}, {1, 3}}),
4040
equalTo(List.of(4, 4, 2)));
4141
}
42+
43+
@Test
44+
void maxActiveSectionsAfterTrade5() {
45+
assertThat(
46+
new Solution()
47+
.maxActiveSectionsAfterTrade(
48+
"10110111", new int[][] {{3, 7}, {4, 6}, {0, 6}}),
49+
equalTo(List.of(6, 6, 8)));
50+
}
4251
}

0 commit comments

Comments
 (0)