DSA sheet · Linked List Patterns

Linked List DSA Notebook

My study notes from the Linked List Patterns playlist. Each page is written so that a beginner (or me, after forgetting everything) can read it once and understand which pointers move and why, which .next gets rewired at each step, the Python code line by line, and a full dry run with the list drawn as boxes and arrows.

The one idea behind every page A linked list is a chain of nodes, each knowing only its next node. There is no index, so every trick is about where you put your pointers and which arrow you change.
Four tools solve almost everything: a dummy node (no special case for the head), fast & slow pointers (middle, cycles, gaps), reversal with prev/curr/next (always save next first), and merging with a tail pointer.

Every page follows the same order:
① question in simple words → ② constraints → ③ intuition → ④ building the logic from examples → ⑤ approach steps → ⑥ code → ⑦ line by line → ⑧ dry run with the list drawn → ⑨ complexity & remember

Start here: basics

Two pointers & fast / slow

Reversal

Merge, sort & dummy node

Linked list + stack

Numbers follow the playlist order (videos 26 and 27 share page 26, so the pages are numbered 1–26). "Next →" at the top of each page follows that order.