Vidyalelo
Data Structure · Q27

Linked Lists in Data Structures

Programming · Data Structure · question 27

Q27

What is the time complexity of finding the middle element in a singly linked list?

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

Answer: Option B

Solution

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