The existing getBucket function can be used to determine which bucket a given key should be in (it performs the hash operation google.comChapterΒ 25 and maps the hash value to the table size).
The existing getBucket function can be used to determine which bucket a given key should be in (it performs the hash operation and maps the hash value to the table size).
Implement the remove function for a StringHashTable. This function should remove the key from the hash table, decrease the size, and leave a tombstone in its place. Use StringHashTable::TOMBSTONE as the tombstone value.
The existing getBucket function can be used to determine which bucket a given key should be in (it performs the hash operation and maps the hash value to the table size).
The existing getBucket function can be used to determine which bucket a given key should be in (it performs the hash operation and maps the hash value to the table size).
To pass the tests, you will need to add your insert and contains functions (from previous exercises). You will likely want to use your insert function as a helper.