Beginner
Data Structures & Algorithms
Q36 / 100
What is the primary advantage of a linked list over an array?
Correct! Well done.
Incorrect.
The correct answer is C) O(1) insertion and deletion at any position given a pointer
C
Correct Answer
O(1) insertion and deletion at any position given a pointer
Explanation
Linked lists allow O(1) insertion/deletion when you have a pointer to the node, without shifting elements. However, random access is O(n).
Progress
36/100