Question DSA-HASH-0021
EasyWhat does a hash function do in a hash table?
- A.
Encrypts the values
- B.
Deletes old keys
- C.
Show answer and explanation
Answer: C
The key's hash decides where its entry is stored.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Hashing question
What does a hash function do in a hash table?
Encrypts the values
Deletes old keys
Answer: C
The key's hash decides where its entry is stored.
Turns a key into an index (slot number) in the table
Sorts the keys