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

fix 2 bugs in ULLMap.java #4

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

Conversation

akfc58
Copy link

@akfc58 akfc58 commented Jun 20, 2023

Hi, I spotted two minor bugs while playing with the ULLMap class in lab07, and I noticed that these bugs have existed since sp21 or earlier. The first problem is that when new items are added, the size is not increased unless there's nothing in the linked list. The second issue is that the get() method in the inner class should always use the user-wanted key "k" instead of the key of the current Entry instance. Hope this information is helpful.

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