type
Linked List LeetCode problems — visual solutions
Every LeetCode problem tagged Linked List — the full catalogue, plus animated visual solutions in Python and Go when a deep-dive exists.
82 problems · 66 animated · 16 locked
Start with a walkthrough
Full Linked list index
- 2Add Two NumbersWatch
- 19Remove Nth Node From End of ListWatch
- 21Merge Two Sorted ListsWatch
- 23Merge k Sorted ListsWatch
- 24Swap Nodes in PairsWatch
- 25Reverse Nodes in k-GroupWatch
- 61Rotate ListWatch
- 82Remove Duplicates from Sorted List IIWatch
- 83Remove Duplicates from Sorted ListWatch
- 86Partition ListWatch
- 92Reverse Linked List IIWatch
- 109Convert Sorted List to Binary Search TreeWatch
- 114Flatten Binary Tree to Linked ListWatch
- 116Populating Next Right Pointers in Each NodeWatch
- 117Populating Next Right Pointers in Each Node IIWatch
- 138Copy List with Random PointerWatch
- 141Linked List CycleWatch
- 142Linked List Cycle IIWatch
- 143Reorder ListWatch
- 146LRU CacheWatch
- 147Insertion Sort ListWatch
- 148Sort ListWatch
- 160Intersection of Two Linked ListsWatch
- 203Remove Linked List ElementsWatch
- 206Reverse Linked ListWatch
- 234Palindrome Linked ListWatch
- 237Delete Node in a Linked ListWatch
- 328Odd Even Linked ListWatch
- 355Design TwitterWatch
- 369Plus One Linked ListLocked
- 379Design Phone DirectoryLocked
- 382Linked List Random NodeWatch
- 426Convert Binary Search Tree to Sorted Doubly Linked ListLocked
- 430Flatten a Multilevel Doubly Linked ListWatch
- 432All O`one Data StructureWatch
- 445Add Two Numbers IIWatch
- 460LFU CacheWatch
- 622Design Circular QueueWatch
- 641Design Circular DequeWatch
- 705Design HashSetWatch
- 706Design HashMapWatch
- 707Design Linked ListWatch
- 708Insert into a Sorted Circular Linked ListLocked
- 716Max StackLocked
- 725Split Linked List in PartsWatch
- 817Linked List ComponentsWatch
- 876Middle of the Linked ListWatch
- 1019Next Greater Node In Linked ListWatch
- 1171Remove Zero Sum Consecutive Nodes from Linked ListWatch
- 1206Design SkiplistWatch
- 1265Print Immutable Linked List in ReverseLocked
- 1290Convert Binary Number in a Linked List to IntegerWatch
- 1367Linked List in Binary TreeWatch
- 1472Design Browser HistoryWatch
- 1474Delete N Nodes After M Nodes of a Linked ListLocked
- 1634Add Two Polynomials Represented as Linked ListsLocked
- 1669Merge In Between Linked ListsWatch
- 1670Design Front Middle Back QueueWatch
- 1721Swapping Nodes in a Linked ListWatch
- 1756Design Most Recently Used QueueLocked
- 1797Design Authentication ManagerWatch
- 1836Remove Duplicates From an Unsorted Linked ListLocked
- 2046Sort Linked List Already Sorted Using Absolute ValuesLocked
- 2058Find the Minimum and Maximum Number of Nodes Between Critical PointsWatch
- 2074Reverse Nodes in Even Length GroupsWatch
- 2095Delete the Middle Node of a Linked ListWatch
- 2130Maximum Twin Sum of a Linked ListWatch
- 2181Merge Nodes in Between ZerosWatch
- 2289Steps to Make Array Non-decreasingWatch
- 2296Design a Text EditorWatch
- 2326Spiral Matrix IVWatch
- 2487Remove Nodes From Linked ListWatch
- 2674Split a Circular Linked ListLocked
- 2807Insert Greatest Common Divisors in Linked ListWatch
- 2816Double a Number Represented as a Linked ListWatch
- 3062Winner of the Linked List GameLocked
- 3063Linked List FrequencyLocked
- 3217Delete Nodes From Linked List Present in ArrayWatch
- 3263Convert Doubly Linked List to Array ILocked
- 3294Convert Doubly Linked List to Array IILocked
- 3507Minimum Pair Removal to Sort Array IWatch
- 3510Minimum Pair Removal to Sort Array IIWatch