While reading this section, one doubt definitely comes is whether
- Buckets in HashTable are arrays which hold one KV pair per index(hash value) and then buckets are chained to maintain multiple KV pairs per index !?
- OR (unlikely) Buckets are logical (horizontal) groupings of KV pairs across arrays, for a given index.
Also Ptr to bucket given here is
HashEntry * bucket;
Which further confuses, its actually as below, as mentioned in next page itself.
HashEntry ** bucket;
Course: https://www.educative.io/collection/5642554087309312/5646276079124480
Lesson: https://www.educative.io/collection/page/5642554087309312/5646276079124480/5758485388066816