What is the difference between an Array and a Linked List?
An array stores elements in contiguous memory locations, allowing for fast O(1) random access, but its size is fixed. A linked list consists of nodes scattered in memory that point to each other, allowing for dynamic resizing, but accessing an element takes O(N) time because you must traverse the list.