Question DSA-HASH-0022
EasyWhich property makes a hash function good for a hash table?
- A.
It is very slow
- B.
It always returns 0
- C.
Show answer and explanation
Answer: C
An even spread keeps collisions, and so lookup times, low.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Hashing question
Which property makes a hash function good for a hash table?
It is very slow
It always returns 0
Answer: C
An even spread keeps collisions, and so lookup times, low.
It spreads keys evenly across the slots
It returns the key unchanged