Examveda

What would be the asymptotic time complexity to insert an element at the front of the linked list (head is known)?

A. O(1)

B. O(n)

C. O(n2)

D. O(n3)

Answer: Option A


This Question Belongs to Data Structure >> Introduction To Data Structures

Join The Discussion

Related Questions on Introduction to Data Structures