Skip to content

Commit 29c5ba2

Browse files
Updated
1 parent e92d433 commit 29c5ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/slidingwindow/MinSumKSizeSubarrayTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MinSumKSizeSubarrayTest {
1818
void testMinSumKSizeSubarray() {
1919
int[] arr = {2, 1, 5, 1, 3, 2};
2020
int k = 3;
21-
int expectedMinSum = 3; // 1 + 1 + 1
21+
int expectedMinSum = 6; // Corrected: Minimum sum of a subarray of size 3
2222
assertEquals(expectedMinSum, MinSumKSizeSubarray.minSumKSizeSubarray(arr, k));
2323
}
2424

0 commit comments

Comments
 (0)