Skip to content

Commit a92cbbe

Browse files
committed
update description
1 parent 1cddf90 commit a92cbbe

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Sliding Window/sliding_window_max.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/*
2+
Given an integer array and a window of size windowSize, find the current maximum value in the window as it slides through the entire array
3+
*/
14
import java.util.*;
25

36
public class SlidingWindowMax {

Sliding Window/sliding_window_max.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/*
2+
Given an integer array and a window of size windowSize, find the current maximum value in the window as it slides through the entire array
3+
*/
14
function findMaxSlidingWindow(nums, windowSize) {
25
if (!nums || windowSize <= 0 || nums.length < windowSize) {
36
return [];

Sliding Window/sliding_window_max.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Given an integer array and a window of size windowSize, find the current maximum value in the window as it slides through the entire array
2+
13
from collections import deque
24

35
def slidingWindowMax(arr,windowSize) -> list[int]:

0 commit comments

Comments
 (0)