Last active
March 12, 2020 23:36
-
-
Save mding5692/b749d4456efcab49c058b7693ed79a21 to your computer and use it in GitHub Desktop.
This will make it easier to read
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node newNode = new Node(yourString); | |
if (table[hashLocation] == null ) { | |
table[hashLocation] = newNode; | |
} else { | |
// iterate through nodes | |
currNode = table[hashLocation]; | |
while (currNode.next != null ) { | |
currNode = currNode.next; | |
} | |
currNode.next = newNode; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment