1/9
Looks like no tags are added yet.
What is a hash table?
A structure that stores data using hash values.
What is a hash function?
A function that converts a key into a bucket location.
What is a bucket?
A storage location within a hash table.
What is a collision?
Two keys map to the same bucket.
What is chaining?
Resolving collisions using linked lists.
What is the load factor?
Number of stored elements ÷ number of buckets.
Why is load factor important?
High load factors increase collisions and reduce performance.
What does HashMap store?
Key-value pairs.
What does HashSet store?
Unique elements.
Difference between TreeSet and HashSet?
TreeSet is sorted. HashSet is not sorted.