-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Add Binary heap structure #5084
Conversation
🦋 Changeset detectedLatest commit: 5b07512 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: cairo <cairoeth@protonmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some docs, mostly minor things. LGTM
I can reapprove if suggestions are applied
Co-authored-by: Ernesto García <ernestognw@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Fixes #3410
Alternative to #5076
This PR uses names from https://en.wikipedia.org/wiki/Heap_(data_structure)#Operations
For the inspection part, we use
length
instead ofsize
for consistencty with all other structures in theutils/struct
folder.PR Checklist
npx changeset add
)