1. Computer Science Engineering (CSE)
  2. Data Structures (DS)
  3. Linear Data Structures - List
  4. What would be the asymptotic time comple...
Q.

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» A. O(1)
View all MCQs in:   Data Structures (DS)

Discussion