Multiple choice technology architecture

Linked lists are best suited

  1. for relatively permanent collections of data

  2. for the size of the structure and the data in the structure are constantly changing

  3. for both of above situation

  4. for none of above situation

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Linked lists use dynamic memory allocation where each node contains data and a pointer to the next node, making them ideal for collections with frequent size changes. Adding or removing elements only requires updating pointers, making these operations O(1) at known positions.