+1 vote
in Data Structures & Algorithms I by (88.2k points)
What is a hash table?

(a) A structure that maps values to keys

(b) A structure that maps keys to values

(c) A structure used for storage

(d) A structure used to implement stack and queue

My query is from Hash Tables topic in chapter Hash Tables of Data Structures & Algorithms I

This question was addressed to me during a job interview.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
Correct option is (b) A structure that maps keys to values

The best explanation: A hash table is used to implement associative arrays which has a key-value pair, so the has table maps keys to values.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...