I did n’t understand one thing in the hashmap , that in every bucket of map , only value is stored or both the (key + value) is stored. please help me, i am very confused.
Storage in hashmap
in hashmaps
corresponding to each key we generate an index using hash functions
and at that index we store value
sorry at that index value will be stored
20 will be stored
sorry for my mistake
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.