reading-notes

Linked Lists

Notes

Lesson

Array Linked List
Static Size Dynamic Size
Creates a new array when size changes Same list can grow or shrink
Faster Search Slower Search
Searching by index is faster Searching requires traversing the list
Access by Index Traversal of List
Can access elements by their index Can access elements by traversing the list
Use Cases: Use Cases:
Known list size Unknown list size
Fixed list size Dynamic list size
Access to all elements Access to beginning and end
Iterate through elements Traverse through nodes

References