Examveda

What is the time complexity to insert an element into the direct address table?

A. O(n)

B. O(logn)

C. O(nlogn)

D. O(1)

Answer: Option D


This Question Belongs to Data Structure >> Hashing

Join The Discussion

Related Questions on Hashing

In hashing, what is a "collision"?

A. When two elements are stored in the same slot.

B. When a hash table exceeds its capacity.

C. When a hash function fails to produce a unique index.

D. When two keys hash to the same index.