Vidyalelo
Data Structure · Q75

Introduction to Data Structures

Programming · Data Structure · question 75

Q75

What would be the asymptotic time complexity to add a node at the end of singly linked list, if the pointer is initially pointing to the head of the list?

A.
O(1)
B.
O(n)
C.
θ(n)
D.
Both O(n) and θ(n)
Answer

Answer: Option D

Solution

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