I am unable to implement the erase function in the hashmap custom class. Please tell me how to do so.
Erase function implementation of Hashmap
suppose u have a map<int,int> mp
lets suppose there is a key value pair present in map (1 -> 2)and u want to erase it… u can simply write mp.erase(1)
I am able to do it with STL. But if I make my own hash map class, then how am I supposed to implement the erase function?
share ur code… i will help u out…
do u still have ant doubt or shall i close this doubt now???
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.