+1 vote
in Data Structures & Algorithms I by (88.2k points)
Which of the following operations are done in a hash table?

(a) Insert only

(b) Search only

(c) Insert and search

(d) Replace

I'm obligated to ask this question of Hash Tables in chapter Hash Tables of Data Structures & Algorithms I

I got this question in a national level competition.

1 Answer

+1 vote
by (672k points)
selected by
Best 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.

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.