AQA A-Level Computer Science · Section 4.2 Fundamentals of Data Structures
| Feature | Array | Linked List |
|---|---|---|
| Size | Fixed (static) | Dynamic |
| Random access | O(1) by index | O(n) — must traverse |
| Insert/Delete | O(n) — shift elements | O(1) with pointer |
| Memory | Contiguous block | Scattered + pointer overhead |
| Best for | Fixed size, fast lookup | Frequent insertions/deletions |