Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void HashTable::remove(int key)
- {
- for (int i = 0, hash = i % reserveSize; i < reserveSize; i++) {
- if (table[hash] != NULL && table[hash]->getKey() == key)
- table[hash] = NULL;
- hash = (hash + 1) % reserveSize;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement