My rehash func is not working in the code below, i am getting the same previous output
you forgot to call reshash function form insert()
you need to add this part of code in insert ()
/// rehash..
int loadFactor=(current_size/(1.0*table_size));
if(loadFactor>=0.7)rehash();
look at this modified code
i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask
1 Like