Skip to content

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