"Section 7: Linked List — Easy/Medium"
Overview
Linked lists are a fundamental data structure. This section covers traversal, manipulation, cycle detection, and classic interview problems.
Lessons
| # | Lesson Name | Duration | Notes |
|---|---|---|---|
| 1 | Intro to Linked List | 27m 56s | |
| 2 | Design Linked List | 21m 6s | |
| 3 | Adding Nodes | 46m 30s | |
| 4 | Deleting Nodes | 20m 19s | |
| 5 | Middle of Linked List | 21m 19s | |
| 6 | Reverse Linked List | 24m 31s | |
| 7 | Linked List Cycle - Hash Table | 26m 30s | |
| 8 | Linked List Cycle - Floyd's | 29m 32s | |
| 9 | Palindrome Linked List | 45m 31s | |
| 10 | Intersection of Two Linked Lists | 22m 7s | |
| 11 | Remove Linked List Elements | 20m+ | |
| 12 | Remove nth Node | — | |
| 13 | Merge Two Sorted Lists | — | |
| 14 | Rotate List | — |
Lesson Checklist
- [ ] Intro to Linked List (27m 56s)
- [ ] Design Linked List (21m 6s)
- [ ] Adding Nodes (46m 30s)
- [ ] Deleting Nodes (20m 19s)
- [ ] Middle of Linked List (21m 19s)
- [ ] Reverse Linked List (24m 31s)
- [ ] Linked List Cycle - Hash Table (26m 30s)
- [ ] Linked List Cycle - Floyd's (29m 32s)
- [ ] Palindrome Linked List (45m 31s)
- [ ] Intersection of Two Linked Lists (22m 7s)
- [ ] Remove Linked List Elements (20m+)
- [ ] Remove nth Node
- [ ] Merge Two Sorted Lists
- [ ] Rotate List
My Notes
Add your personal notes, key takeaways, and insights here as you progress through the section.
Key Patterns
- Two pointer / Fast & Slow pointer — middle, cycle detection
- Dummy node — simplifies edge cases in add/remove
- Reverse in-place — iterative vs recursive
Problem Notes
Reverse Linked List
Floyd's Cycle Detection
- slow moves 1 step, fast moves 2 steps
- If they meet → cycle exists
Palindrome Linked List
- Find middle → reverse second half → compare
Merge Two Sorted Lists