in search function(string key)
int i=hasfn(key)
node*temp=buckets[i]
is this temp refers to string to be search ?
Hashing Live advanced
Hello @kunalsaini8950,
- key is the string to be search.
- After passing key to hasfn(key), it generates a hash value i.e. i.
(the index of bucket at which the key is present) - temp is a temporary variable which points to the node present at bucket[i].
It is same as what we have used in the print() function.
Hope, this would help.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.