Linked List LeetCode Problems: All 75,
With Python Solutions
Every problem in this library that LeetCode tags Linked List. 63 of them carry a complete Python solution, a worked example and the time and space complexity of the approach.
- Easy
- 12
- Medium
- 56
- Hard
- 7
How Linked List problems are solved
A tag names the subject, not the method. These pattern hubs cover the techniques that actually solve Linked List problems — each one explains the approach, gives a Python template and states its complexity.
Eyes only
When the Linked List problem arrives live.
In the live round, Stealth Interview reads the problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer says. It's a desktop app for macOS and Windows, invisible to screen sharing.
Linked List problems by difficulty
Problems with a complete Python solution are listed first, then by ascending problem number.
Easy (12)
| No. | Problem | Topics |
|---|---|---|
| 0021 | Merge Two Sorted Lists | |
| 0083 | Remove Duplicates from Sorted List | |
| 0141 | Linked List Cycle | |
| 0160 | Intersection of Two Linked Lists | |
| 0203 | Remove Linked List Elements | |
| 0206 | Reverse Linked List | |
| 0234 | Palindrome Linked List | |
| 0705 | Design HashSet | |
| 0706 | Design HashMap | |
| 0876 | Middle of the Linked List | |
| 1290 | Convert Binary Number in a Linked List to Integer | |
| 1474 | Delete N Nodes After M Nodes of a Linked ListPremium |
Medium (56)
Hard (7)
| No. | Problem | Topics |
|---|---|---|
| 0023 | Merge k Sorted Lists | |
| 0025 | Reverse Nodes in k-Group | |
| 0432 | All O`one Data Structure | |
| 0460 | LFU Cache | |
| 1206 | Design Skiplist | |
| 2296 | Design a Text Editor | |
| 0716 | Max StackPremium |
Keep exploring
Other topics
- Array1,569
- String672
- Hash Table588
- Math485
- Dynamic Programming481
- Sorting392
- Greedy346
- Depth-First Search289
- Binary Search253
- Database249
- Tree225
- Breadth-First Search223
- Matrix216
- Two Pointers201
- Bit Manipulation194
- Binary Tree174
- Heap (Priority Queue)163
- Prefix Sum157
- Stack157
- Simulation144
- Graph138
- Counting126
- Design122
- Sliding Window116