Practice Questions
Here is a curated list of practice questions to test your understanding of linked lists.
Try to solve these on your own before looking at the solutions! Start with Easy problems and work your way up. The two-pointer (slow/fast) technique appears in many of these — master it and you’ll fly through the list.
Easy
| Problem | Technique | Status |
|---|---|---|
| Middle of the Linked List | Two Pointers (slow/fast) | Available |
| Linked List Cycle | Two Pointers (Floyd’s) | Available |
| Convert Binary Number in a Linked List to Integer | Traversal | Available |
| Remove Duplicates from Sorted List | Two Pointers | Available |
| Merge Two Sorted Lists | Two Pointers / Recursion | Available |
| Multiply Two Numbers Represented by Linked Lists | Traversal + Math | Available |
| Intersection of Two Linked Lists | Two Pointers | Available |
| Delete Node in a Linked List | Node Manipulation | Available |
| Palindrome Linked List | Slow/Fast + Reverse | Available |
Medium
| Problem | Technique | Status |
|---|---|---|
| Reverse Linked List II | Two Pointers + Reversal | Coming Soon |
| Add Two Numbers | Traversal + Carry | Coming Soon |
| Remove Nth Node from End of List | Two Pointers | Coming Soon |
| Reorder List | Slow/Fast + Merge | Coming Soon |
| Copy List with Random Pointer | Hash Map | Coming Soon |
Hard
| Problem | Technique | Status |
|---|---|---|
| Merge k Sorted Lists | Divide & Conquer / Heap | Coming Soon |
| Reverse Nodes in k-Group | Recursion + Pointer Rewiring | Coming Soon |
| Flatten a Multilevel Doubly Linked List | DFS / Recursion | Coming Soon |
More Practice (External Links)
These are great follow-up problems to solidify your understanding:
| Problem | Platform | Technique |
|---|---|---|
| Sort List | LeetCode | Merge Sort on LL |
| Sort 0s, 1s and 2s | GFG | Dutch National Flag |
| Partition List | LeetCode | Two Lists + Merge |
| Segregate Even and Odd | GFG | Two Pointers |
| Merge Sort for Linked List | GFG | Divide & Conquer |
| Flattening a Linked List | GFG | Merge + Recursion |
| Subtract Two Numbers as Linked Lists | GFG | Traversal + Math |