Beginner Data Structures & Algorithms
Q7 / 100

What does a hash table use to map keys to values?

Correct! Well done.

Incorrect.

The correct answer is B) A hash function

B

Correct Answer

A hash function

Explanation

A hash function converts a key into an index in an underlying array. With a good hash function, average-case get/put/delete are O(1).

Progress
7/100