"Section 7: Linked List — Easy/Medium"

📚 Vanakkam DSA Course (24 sections) · Hope AI — ML & DS Course

Overview

Linked lists are a fundamental data structure. This section covers traversal, manipulation, cycle detection, and classic interview problems.


Lessons

#Lesson NameDurationNotes
1Intro to Linked List27m 56s
2Design Linked List21m 6s
3Adding Nodes46m 30s
4Deleting Nodes20m 19s
5Middle of Linked List21m 19s
6Reverse Linked List24m 31s
7Linked List Cycle - Hash Table26m 30s
8Linked List Cycle - Floyd's29m 32s
9Palindrome Linked List45m 31s
10Intersection of Two Linked Lists22m 7s
11Remove Linked List Elements20m+
12Remove nth Node
13Merge Two Sorted Lists
14Rotate 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