# Linked List Confidence: high Last verified: 2026-05-22 Generation: human_only ## TL;DR A linked list is a linear collection of nodes, each containing data and a pointer. O(1) insert/delete at known position, O(n) random access. Variants: singly-linked, doubly-linked, circular. Poor cache locality but dynamic sizing is trivial. ## Core Explanation Singly-linked: data + next pointer. Doubly-linked: data + next + prev. JavaScript doesn't have built-in linked lists — Array is always used due to cache performance. Linked lists shine when frequent insertions/deletions at arbitrary positions are needed and memory is fragmented. ## Further Reading - [Introduction to Algorithms (CLRS)](undefined)