What is the main advantage of using a linked list over an array?
Q1. What is the main advantage of using a linked list over an array?
Answer: Dynamic memory allocation
Explanation: Linked lists allow for efficient insertion and deletion of nodes without shifting elements, making them suitable for dynamic data.