Skip to content

Instantly share code, notes, and snippets.

@Kejia Kejia/linear_probing.java
Last active Sep 18, 2017

Embed
What would you like to do?
java: linear probing.
// linear probing a null slot in an M-length array (M >= N)
for (i = start; myarray[i] != null && myarray[i] != target; i = (i+1) % M)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.