Skip to content

refactor: Enhance docs, add tests in GenericHashMapUsingArray #5972

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

Merged
merged 5 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
Hardvan committed Oct 29, 2024
commit 57a26e64ffa737ee8beb981943bd3001eaba16b7
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ private int hashFunction(K key) {
* Rehashes the map by doubling the number of buckets and re-inserting all entries.
*/
private void reHash() {
System.out.println("Rehashing!");
LinkedList<Node>[] oldBuckets = buckets;
initBuckets(oldBuckets.length * 2);
this.size = 0;
Expand Down