Vidyalelo
Data Structure · Q31

Linked Lists in Data Structures

Programming · Data Structure · question 31

Q31

What is the time complexity for accessing the last 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