The Wayback Machine - https://web.archive.org/web/20201103184417/https://github.com/TheAlgorithms/Java/pull/1395
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

Add javadoc and inline comments to HashMap.java #1395

Open
wants to merge 4 commits into
base: master
from

Conversation

@afadhitya
Copy link

@afadhitya afadhitya commented Aug 7, 2020

I added a javadoc comment and made a little change to the modifier method

closes #1394

@afadhitya afadhitya closed this Aug 7, 2020
@rbshealy
Copy link
Contributor

@rbshealy rbshealy commented Aug 7, 2020

You may have to re-pull because upstream master HashMap.java just got updated

@afadhitya afadhitya reopened this Aug 7, 2020
@afadhitya
Copy link
Author

@afadhitya afadhitya commented Aug 7, 2020

Hi @rbshealy please review this

Thanks

public int hashing(int key) {
int hash = key % hsize;
if (hash < 0)
hash += hsize;
return hash;
}

Comment on lines 16 to 22

This comment has been minimized.

@rbshealy

rbshealy Aug 7, 2020
Contributor

un-delete this

This comment has been minimized.

@afadhitya

afadhitya Aug 7, 2020
Author

Actually for this thing I've change it to private

DataStructures/HashMap/Hashing/HashMap.java Outdated Show resolved Hide resolved
DataStructures/HashMap/Hashing/HashMap.java Outdated Show resolved Hide resolved
DataStructures/HashMap/Hashing/HashMap.java Outdated Show resolved Hide resolved
DataStructures/HashMap/Hashing/HashMap.java Outdated Show resolved Hide resolved
DataStructures/HashMap/Hashing/HashMap.java Outdated Show resolved Hide resolved
DataStructures/HashMap/Hashing/HashMap.java Outdated Show resolved Hide resolved
@afadhitya
Copy link
Author

@afadhitya afadhitya commented Aug 7, 2020

Hi @rbshealy I have an updated

@rbshealy
Copy link
Contributor

@rbshealy rbshealy commented Aug 7, 2020

Looks great! The only thing left is to un-delete the hashing method

@afadhitya
Copy link
Author

@afadhitya afadhitya commented Aug 8, 2020

Hi @rbshealy i've done un-delete hashing method

@rbshealy
Copy link
Contributor

@rbshealy rbshealy commented Aug 8, 2020

great work! This addresses the issue pretty well 👍🏻

@afadhitya
Copy link
Author

@afadhitya afadhitya commented Aug 16, 2020

Hi @StepfenShawn could you please review then merge this if necessary?
Thanks in advance


/**
* Get the next node after the current node
* @return Node next node
*/
Comment on lines +213 to +217

This comment has been minimized.

@rbshealy

rbshealy Aug 16, 2020
Contributor

Fix indentation example

This comment has been minimized.

@rbshealy

rbshealy Aug 16, 2020
Contributor

Before this gets merged, I just re-checked it and found some indentation errors, can you fix these? I will approve all changes after you do so

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.