This project is a script-based tool designed to fetch LeetCode questions and generate Anki decks for practicing data structures and algorithms with spaced repetition. By integrating LeetCode problems into Anki flashcards, you can improve your problem-solving skills, retain solutions longer, and prepare effectively for coding interviews.
β Automatically fetches questions, solutions, and submissions from LeetCode
β Generates customizable Anki decks with:
β’ Problem descriptions
β’ Solution approaches
β’ Edge cases, clarifying questions, and common mistakes
β’ Personal notes and code solutions
β Supports spaced repetition to boost long-term memory of problem patterns
β Simple CLI for generating and updating decks
β Combines active recall with spaced repetition for better retention
β Helps you track your LeetCode progress in Anki
β Saves time from manually creating flashcards
β Perfect for preparing technical interviews
git clone https://github.com/your-username/anki-generator.git
cd anki-generator
# Install dependencies (creates virtual environment)
poetry install
# sync problem list with leetcode account
poetry run python cli.py sync_favourite_list --slug :slug-problem-list --size :number-of-questions
# generate Anki Deck with Favourite Problem List
poetry run python cli.py generate --is_favourite