Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 0239-sliding-window-maximum.js #1843

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

andynullwong
Copy link
Contributor

@andynullwong andynullwong commented Jan 2, 2023

Since JavaScript does not have a native Deque data structure, I included a 2nd solution with an array with Lazy Deletion as an alternative to the current and only solution using a Linked-List w/ custom methods. I figured this would be a useful example as it would be less verbose to implement during live coding interviews.

If you find this solution a good addition I can make another PR for Typescript as well.

@tahsintunan tahsintunan merged commit a6c9f75 into neetcode-gh:main Jan 10, 2023
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.

2 participants