6) (2 0 pts) Write a function that will search for an entry in a chained hash ta
ID: 3706550 • Letter: 6
Question
6) (2 0 pts) Write a function that will search for an entry in a chained hash table. Below is the header and the specifications of the function // If key is in the hashtable, found is set to true and result is a pointer to the node containing key; // otherwise, found is set to false and result is set to NULL // Note: you can assume the existence of a function int hash(int) which hashes key to a position /I within hashtable, so you can just call it. void findKey (node "hashtablel ], int key, bool &found;, node 'result)Explanation / Answer
void findkey(node *hashtable[],int key, bool &found, node *result)
{
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.