1.

Which of the following operations are done in a hash table?(a) Insert only(b) Search only(c) Insert and search(d) ReplaceI'm obligated to ask this question of Hash Tables in chapter Hash Tables of Data Structures & Algorithms II got this question in a national level competition.

Answer»

Correct answer is (c) Insert and search

Easiest explanation - Hash tables are used to implement Insert and Find OPERATIONS in CONSTANT average TIME. This is the prime PURPOSE of hashing.



Discussion

No Comment Found

Related InterviewSolutions