Vidyalelo
Data Structure · Q57

Linked Lists in Data Structures

Programming · Data Structure · question 57

Q57

Which among the following is the time complexity for inserting an element in an unrolled linked list?

A.
O(1)
B.
O(n)
Answer
C.
O(log n)
D.
O(n2)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board