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
A. O(1)
B. O(n)
C. O(n2)
D. O(n3)
Answer: Option A
A. A collection of data values
B. A programming language
C. A set of algorithms
D. A way of organizing and storing data
Join The Discussion