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

Extension to 05 Update insert code #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Extension to 05 Update insert code #15

wants to merge 1 commit into from

Conversation

HiImKarl
Copy link

Hi, great tutorial. I'm curious about the insert function described in ch. 5, after the "update" modification. As it stands, wouldn't the function skip over deleted slots and add the new entry in the next available slot, as opposed to replacing one of the deleted slots? I wrote a few lines that I think would implement what I just described. Thanks.

Changed so that deleted slots would be replaced if insert did not replace an active key (as opposed to inserting it into the next valid slot)
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