Skip to content

Commit dd7900a

Browse files
committed
Added test
1 parent 0e6446f commit dd7900a

File tree

1 file changed

+5
-0
lines changed
  • src/test/java/g3501_3600/s3509_maximum_product_of_subsequences_with_an_alternating_sum_equal_to_k

1 file changed

+5
-0
lines changed

src/test/java/g3501_3600/s3509_maximum_product_of_subsequences_with_an_alternating_sum_equal_to_k/SolutionTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ void maxProduct2() {
2020
void maxProduct3() {
2121
assertThat(new Solution().maxProduct(new int[] {2, 2, 3, 3}, 0, 9), equalTo(9));
2222
}
23+
24+
@Test
25+
void maxProduct4() {
26+
assertThat(new Solution().maxProduct(new int[] {12, 0, 9}, 21, 20), equalTo(0));
27+
}
2328
}

0 commit comments

Comments
 (0)