Skip to content

Commit c1f52e9

Browse files
lines updated
1 parent 8139629 commit c1f52e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/thealgorithms/slidingwindow/MinSumKSizeSubarray.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
package com.thealgorithms.slidingwindow;
2-
32
/**
43
* The Sliding Window algorithm is used to find the minimum sum of a subarray
54
* of a fixed size k within a given array.
@@ -18,7 +17,7 @@
1817
public final class MinSumKSizeSubarray {
1918

2019
// Prevent instantiation
21-
private MinSumKSizeSubarray() {
20+
private MinSumKSizeSubarray() {
2221
}
2322

2423
/**
@@ -28,7 +27,6 @@ private MinSumKSizeSubarray() {
2827
* @param k is the size of the subarray
2928
* @return the minimum sum of the subarray of size k
3029
*/
31-
3230
public static int minSumKSizeSubarray(int[] arr, int k) {
3331
if (arr.length < k) {
3432
return -1; // Edge case: not enough elements

0 commit comments

Comments
 (0)