Question DSA-HASH-0068
HardWhy do production hash maps use a random seed in their string hash?
- A.
To compress keys
- B.
To sort keys
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Hashing question
Why do production hash maps use a random seed in their string hash?
To compress keys
To sort keys
Sign up free to see the answer and a step-by-step explanation.
To make hashing faster
To stop attackers from crafting many keys that collide (hash-flooding denial of service)