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)
This is a very interesting question from Direct Addressing Tables in chapter Hash Tables of Data Structures & Algorithms I
This question was posed to me in examination.