Sir idont get use of operator== and hashfxn in this video

sir plz give an example how both they are working

Hello Devwrath, when we use custom data type for key(such as user defined class etc),
we have to define functions to check equality of key(using == operator overloading) and also a hashfunction so that a valid index is generated.
Both of them are necessary because:

  1. == operator tells the hashmap whether key used is already there, or is it a new entry.
  2. hashfunction generates a valid integer value (index) from given key, this index is then used to decide where the given key-value pair be stored in hashtable.

Plz Make me understand dry run of this I am not getting that

What exactly you are unable to understand?
need of these these extra functions or how they are implemented?
if its about need, then go through my previous reply, if it’s about implementation then tell me I will provide you with code for it.

Sir I want to know how they work

see it the code is commented

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.