Skip to content

## Add Maximum Sliding Window Problem - #37

Open
agentksimha wants to merge 1 commit into
ashishps1:mainfrom
agentksimha:main
Open

## Add Maximum Sliding Window Problem#37
agentksimha wants to merge 1 commit into
ashishps1:mainfrom
agentksimha:main

Conversation

@agentksimha

Copy link
Copy Markdown

Adds maxSlidingWindow using a monotonic deque.

The existing problems cover running sums and frequency sets — but this introduces a pattern learners haven't seen yet: maintaining a deque of indices to track a maximum that expires as the window moves. It's a natural next step in difficulty and directly prepares learners for harder sliding window problems in interviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant