InterviewSolution
Saved Bookmarks
| 1. |
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(n^2)(d) O(n^3)The doubt is from Singly Linked List Operations in chapter Abstract Data Types of Data Structures & Algorithms II have been asked this question during an online interview. |
|
Answer» The correct OPTION is (a) O(1) |
|