Skip to content

Add the Graphs for LeetCode video course and the tool features it films - #259

Merged
djeada merged 1 commit into
masterfrom
feat/graphs-course
Nov 13, 2026
Merged

djeada merged 1 commit into
masterfrom
feat/graphs-course

Conversation

@djeada

@djeada djeada commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Summary

This adds everything behind the eight-part "Graphs for LeetCode" video, about 37 minutes in total. The tool features are real and usable on the site, and the course renderer films them.

Graphs tool

  • Maze features:
    • seeded mazes that can be set up entirely from URL parameters
    • cells waiting in the queue drawn differently from visited cells
    • a backtracking DFS that highlights its current path
    • a Show distances toggle
  • New maze modes:
    • multi-source BFS with a level counter
    • an islands mode that counts components
    • mud cells that cost 5, with a path cost stat
    • 0-1 BFS with a visible deque
  • New Network mode (network.js, network.css): a node-and-edge view with presets and step-by-step frames for Kahn's algorithm, three-color DFS, Dijkstra (stale heap entries are skipped), Bellman–Ford with and without the copied dist row, Floyd–Warshall, bipartite and greedy coloring, Kruskal and Prim.

Data Structure Lab

  • Graph:
    • shows its adjacency list
    • runs BFS or DFS
    • reports the first edge that closes a cycle
    • counts components after a vertex is removed
  • New Disjoint Set: a forest view, the parent and size arrays, path compression, union by size, and a Redundant Connection preset.

Video course (scripts/reels/graphs_course)

  • Docs: the plan, the task list, eight section scripts, and a narration-only recording sheet.
  • Renderer:
    • films the real tool pages under a paused clock
    • splits the narrator's recording on its pauses
    • adds overlay cards, captions and a ducked music bed
    • writes each section, a vertical reel per section, and the joined full video with chapters
  • Not committed: the rendered videos and the voice recordings are git-ignored.

Test plan

  • npx playwright test tests/graphs-course.spec.js tests/graphs-mud.spec.js tests/graphs-network.spec.js tests/data-structures.spec.js: 53 passed after rebasing on master
  • All eight sections, eight reels and the full video rendered and checked frame by frame against the narration
  • Check the graphs tool and the Data Structure Lab on the live preview in both themes and at phone width

🤖 Generated with Claude Code

Graphs tool:
- Seeded mazes with URL setup, a frontier view, a backtracking DFS that shows its current path, and a Show distances toggle.
- Multi-source BFS with a level counter, an islands mode that counts components, mud cells that cost 5 with a path cost stat, and 0-1 BFS with a visible deque.
- A new Network mode (network.js, network.css) with presets and step-by-step views for Kahn's algorithm, three-color DFS, Dijkstra with stale heap entries, Bellman-Ford with and without the copied dist row, Floyd-Warshall, bipartite 2-coloring, greedy coloring, Kruskal and Prim.

Data Structure Lab:
- Graph shows its adjacency list, runs BFS or DFS, reports the first cycle edge, and counts components after a vertex is removed.
- A new Disjoint Set structure with a forest view, the parent and size arrays, path compression, union by size and a Redundant Connection preset.

Video course (scripts/reels/graphs_course):
- The plan, task list, eight section scripts and a narration-only recording sheet.
- A renderer that films the real pages under a paused clock, splits the owner's recording on its pauses, adds overlay cards, captions and a ducked music bed, and writes each section, a vertical reel per section, and the joined full video with YouTube chapters.

Tests: graphs-course, graphs-mud and graphs-network specs, plus Disjoint Set tests in data-structures.spec.js.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for goofy-brahmagupta-0a14f0 ready!

Name Link
🔨 Latest commit 0afdc56
🔍 Latest deploy log https://app.netlify.com/projects/goofy-brahmagupta-0a14f0/deploys/6af7947eaf5d1285633ea9eb
😎 Deploy Preview https://deploy-preview-259--goofy-brahmagupta-0a14f0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@djeada djeada self-assigned this Nov 13, 2026
@djeada
djeada merged commit 67b041a into master Nov 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant