Examveda

What is the disadvantage of BST over the hash table?

A. BST is easier to implement

B. BST can get the keys sorted by just performing inorder traversal

C. BST can perform range query easily

D. Time complexity of hash table in inserting, searching and deleting is less than that of BST

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.