1.

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 queueMy query is from Hash Tables topic in chapter Hash Tables of Data Structures & Algorithms IThis question was addressed to me during a job interview.

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.



Discussion

No Comment Found

Related InterviewSolutions