what is a buckets? is it contain 2 cells ? one for name and one for data?
What is exactly a bucket?
HashMap stores the data into multiple singly linked lists of entries, also called buckets. So basically, a bucket is a slot in the container’s internal hash table to which elements are assigned based on the hash value of their key. And, the keys in each bucket are typically stored as singly linked list.
1 Like