Linked Lists

Nodes linked by pointers — insert and delete without shifting a contiguous block.

Related concepts

TopicDescription
Two PointersScan a sorted array or string from both ends at once to find pairs, remove duplicates, or reverse data in O(n).
ArraysOrdered indexable collection for O(1) access by position.
StacksLast-in, first-out collection for undo, parsing, and nested work.
QueuesFirst-in, first-out collection for scheduling, BFS, and buffering.
Hash TablesKey-to-value lookup in average O(1) via hashing into buckets.
TreesHierarchical nodes with parent–child links for ordered and nested data.