Skip to content

Python script to automate video animations for Leetcode solutions. Uses the Anthropic API for Claude and ElevenLabs for voiceovers

Notifications You must be signed in to change notification settings

ntna141/Animations

Repository files navigation

Leetcode solution animation creator

Python script to automate video animations for Leetcode solutions. Uses the Anthropic API for Claude and ElevenLabs for voiceovers

  • Supports Arrays, Trees, Linkedlist, Dict, and Set

Video Demo

This is a demo for the Jump Game Leetcode question, visualizing a backward loop solution

jump_game.mp4

Setup

  1. Create a virtual environment:
python -m venv venv
  1. Activate the virtual environment:
  • On macOS/Linux:
source venv/bin/activate
  • On Windows:
venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Usage

Run the visualization for the problem Jump Game:

python test_animation.py

This will create an animation of array operations and save it as jump_game.mp4.

About

Python script to automate video animations for Leetcode solutions. Uses the Anthropic API for Claude and ElevenLabs for voiceovers

Resources

Stars

Watchers

Forks

Languages