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

Ad hoc versions of MinHeap, MaxHeap, and DisjointSet #1117

Merged
merged 5 commits into from
Mar 9, 2024

Conversation

trekhleb
Copy link
Owner

@trekhleb trekhleb commented Mar 9, 2024

JS misses some data structures that might be handy for the folks who are going through the coding interview process.

This PR contains several minimalistic (by their functionalities and implementation) data structures like MinHeap, MaxHeap, and DisjointSet that don't have external dependencies and that are easy to copy-paste and use during the coding interview if allowed by the interviewer.

@trekhleb trekhleb merged commit 2c67b48 into master Mar 9, 2024
1 check passed
@trekhleb trekhleb deleted the minimalistic-ds branch March 9, 2024 16:15
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.

None yet

1 participant