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
This is a demo for the Jump Game Leetcode question, visualizing a backward loop solution
jump_game.mp4
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On macOS/Linux:
source venv/bin/activate
- On Windows:
venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
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
.