<aside>
This section is part of the 5-hour LeetCode DSA Patterns course by Mukul Raina
Linked list problems are fundamentally different from array problems. In arrays, you can jump to any index in O(1). In linked lists, you can only move forward one node at a time. This constraint means that binary search, random access, and index-based tricks do not apply. Instead, the central skill is pointer manipulation: rewiring .next references without losing track of nodes.
The good news is that linked list problems use a small set of repeating patterns. Nearly every linked list interview question reduces to one of four techniques: dummy nodes to simplify edge cases, fast/slow pointers to find positions or detect cycles, reversal to rewire node order, and merging to combine sorted lists. Master these four and you can solve the vast majority of linked list problems.
What We’ll Cover:
Where This Appears in Interviews:
| Company Type | How This Section Appears |
|---|---|
| FAANG / Big Tech | Reverse Linked List, Merge K Sorted Lists, and Reorder List are frequent medium problems |
| Mid-size companies | Cycle detection and basic reversal appear in phone screens |
| Startups | Linked list problems are less common but appear when testing pointer manipulation skills |
| Online assessments | Linked list problems are rarer in timed assessments but appear as one of several questions |
Core Idea for This Section: Linked list problems are pointer manipulation problems. The hard part is never the algorithm. It is preserving references before rewiring nodes.
<aside>
Mukul Raina | youtube.com/@mukulraina | slides.mukulraina.com | LinkedIn
</aside>
<aside>
Mukul Raina | youtube.com/@mukulraina | slides.mukulraina.com | LinkedIn
</aside>
Recognition Signal: The operation might modify the head of the list. For example, removing the first node, inserting before the head, or merging two lists where the new head is unknown in advance. Without a dummy node, you need special-case logic for the head, which makes the code more complex and error-prone.
What a Dummy Node Is:
A dummy node (also called a sentinel) is a fake node that you create at the start and place before the real head. It is never part of the actual list. At the end, you return dummy.next as the real head. This eliminates all special cases for the head node.