Question: Only write the code for void HashTable::createNewHashTable() while using int hashSum2(std::string x, int s) . No other part of the code has to be written.
Only write the code for void HashTable::createNewHashTable() while using int hashSum2(std::string x, int s). No other part of the code has to be written.



Expected results:
Only write the code for void HashTable::createNewHashTable() while using int hashSum2(std::string x, int s). No other part of the code has to be written.
Implement a C++ function to build a new hash table from an existing hash table using a new hash function called hashsum2. In the new hash table, insert the movies at the front of the linked list when the movies hash to the same index. Note: In the background, we handle building/inserting into the hash table by the hash function from your book. We also write the hashsum2 and you only will need to call it. You will need to use the newHashTable variable. void HashTable::createNewHashTable0; You need to implement this function int hashSum2(std: string x, int s); already defined. You will need to call this function in createNewHashTable0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
