Linked Lists

← Back to Linear Structures

Sequence of nodes where each node contains data and a pointer to the next node. Trade random access for efficient insertion/deletion at any known position.

Key Properties

Complexity

OperationTime Complexity
AccessO(n)
SearchO(n)
Insert/Delete at known positionO(1)
Insert/Delete with searchO(n)

data-structures linear linked-lists