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
Answer and explanation
Concise answer
When two key values compute the same hash
Why this is correct
A collision occurs when two key values compute the same hash.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
