Which data structure provides O(1) time complexity for search, insert, and delete operations on average?
-
A
Binary Search Tree
-
B
Hash Table
Correct answer
-
C
Red-Black Tree
-
D
B-Tree
Correct answer
B. Hash Table
16 views
Explanation
Hash tables provide O(1) average time complexity for basic operations with a good hash function.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ