Exam-style question
Try this first
What is a collision in a hash table?.
- A.When a key has no value
- B.When two key values compute the same hash
- C.When two values are stored in different tables
- D.When a hash table is empty
Model answer
What a good answer should say
- When two key values compute the same hash
Explanation
Why this works
A collision occurs when two key values compute the same hash.
Common mistake
No common mistake is linked to this question yet.
