Skip to content

Commit 5e3ddc3

Browse files
committed
Added test function for MaximumSlidingWindow
1 parent 1f13d84 commit 5e3ddc3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/main/java/com/thealgorithms/others/MaximumSlidingWindow.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,5 @@ public int[] maxSlidingWindow(int[] nums, int windowSize) {
5353
}
5454
return result;
5555
}
56-
public static void main(String[] args) {
57-
MaximumSlidingWindow msw = new MaximumSlidingWindow();
58-
int[] nums = {1, 3, -1, -3, 5, 3, 6, 7};
59-
int k = 3;
6056

61-
// Calculate the maximum sliding window
62-
int[] result = msw.maxSlidingWindow(nums, k);
63-
64-
// Print the result
65-
for (int num : result) {
66-
System.out.print(num + " ");
67-
}
68-
}
6957
}

0 commit comments

Comments
 (0)