in this shouldn’t we perform key[i]%table_size??
In hashfn(string key)
Hey Saurabh, how can you directly take mod with a string?
what we do is first convert the string into integer and then take %table_size.
Methods to convert string into integer are discussed in course, still feel free to ask if you have doubt.
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.