Sail E0 Webinar
Question
What is the time complexity to insert an element into the direct address table?
Options:
A .  O(n)
B .  O(logn)
C .  O(nlogn)
D .  O(1)
Answer: Option D


As every key has a unique array position, it takes constant time to insert an element.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers