Skip to content

Commit 5d3cd42

Browse files
authored
Improved tasks 689, 699
1 parent 6024d9d commit 5d3cd42

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/test/java/g0601_0700/s0689_maximum_sum_of_3_non_overlapping_subarrays/SolutionTest.java

+7
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@ void maxSumOfThreeSubarrays() {
1212
new Solution().maxSumOfThreeSubarrays(new int[] {1, 2, 1, 2, 6, 7, 5, 1}, 2),
1313
equalTo(new int[] {0, 3, 5}));
1414
}
15+
16+
@Test
17+
void maxSumOfThreeSubarrays2() {
18+
assertThat(
19+
new Solution().maxSumOfThreeSubarrays(new int[] {1, 2, 1, 2, 1, 2, 1, 2, 1}, 2),
20+
equalTo(new int[] {0, 2, 4}));
21+
}
1522
}

src/test/java/g0601_0700/s0699_falling_squares/SolutionTest.java

+7
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ void fallingSquares() {
1313
new Solution().fallingSquares(new int[][] {{1, 2}, {2, 3}, {6, 1}}),
1414
equalTo(Arrays.asList(2, 5, 5)));
1515
}
16+
17+
@Test
18+
void fallingSquares2() {
19+
assertThat(
20+
new Solution().fallingSquares(new int[][] {{100, 100}, {200, 100}}),
21+
equalTo(Arrays.asList(100, 100)));
22+
}
1623
}

0 commit comments

Comments
 (0)