Q31
What is the time complexity for accessing the last element in a singly linked list?
A.
O(1)
B.
O(n)
AnswerC.
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