🚧 Early Access Preview - Full launch coming soon! Images and final content are being updated. 🚧

Loading Experience...
Revolutionize Your LeetCode Practice

LeetCode2Anki Plus

Save solved LeetCode problems directly to Anki and track your progress with Google Sheets. Perfect for spaced repetition learning and systematic coding interview preparation. Boost your retention by 80% with our optimized learning system.

Open Source
No Registration Required
Easy Setup

Unique Learning Resources Included!

Unlike other open-source projects, we provide detailed explanations of every technique used in the code, along with potential interview questions and answers. Perfect for learning advanced coding patterns!

Explore learning resources

Key Features

Why Choose LeetCode2Anki Plus?

Enhanced features for systematic coding interview preparation

Anki Integration

Seamlessly save LeetCode problems to Anki with formatted cards for optimal spaced repetition learning.

Google Sheets Tracking

Automatically log solved problems with timestamps, difficulty, and tags for comprehensive progress monitoring.

Performance Metrics

Track solve time, first attempt success/failure, and confidence levels for detailed performance analysis.

Spaced Repetition System

Complete Google Sheets-based SRS with dynamic review scheduling based on your confidence ratings.

Robust LeetCode Support

Works reliably with both old and new LeetCode UIs, using multiple detection strategies for code and problem data.

Learning Resources

Access detailed explanations of coding patterns, potential interview questions, and solutions optimized for technical interviews.

Improvements Over Original Version

Feature Original LeetCode2Anki Plus
Editor Support Basic, fails on some pages Robust with multiple fallbacks
Problem Detection Single method Multiple detection strategies
Error Handling Basic Comprehensive with logging and retries
Google Sheets None Full integration with tracking
UI Compatibility Basic Compatible with latest UI changes

Quick Setup

Get Started in Minutes

Follow these steps to integrate LeetCode with Anki and Google Sheets.

Installing Anki & AnkiConnect

Anki is a powerful spaced repetition flashcard program and AnkiConnect is an add-on that allows external applications to communicate with Anki.

  1. Download and install Anki for your operating system
  2. Open Anki and select Tools > Add-ons > Get Add-ons...
  3. Enter code 2055492159 to install AnkiConnect
  4. Restart Anki to complete the installation

Important Note

Anki must be running with AnkiConnect enabled whenever you want to save problems from LeetCode. The script communicates with the locally running Anki application.

Anki Connect

See It In Action

How It Works

Watch how easily you can save LeetCode problems to Anki and track your progress

1

Solve a LeetCode Problem

Complete any problem on LeetCode and make sure your solution is accepted.

2

Save to Anki

Click the "Save to Anki" button in the bottom right corner of the page.

3

Track Progress

Click "Save to Sheet" to add the problem to your Google Sheets tracking system.

4

Review Regularly

Study your saved problems in Anki using spaced repetition for optimal learning.

https://leetcode.com/problems/two-sum/
Solving a LeetCode problem

Questions & Answers

Frequently Asked Questions

Find answers to common questions about LeetCode2Anki Plus

Yes, Anki needs to be running with AnkiConnect active for the script to communicate with it. The connection is local and works through the AnkiConnect add-on.

You can edit the template by modifying the frontSide and backSide variables in the userscript. The script uses HTML and CSS for formatting. After making changes, you'll need to delete and recreate the card model in Anki for changes to take effect.

Yes, LeetCode2Anki Plus has been designed to work with both the old and new LeetCode UI. It uses multiple detection strategies to find problem data and your code regardless of the UI version.

Yes, you can customize the language by changing the language and langShortName variables in the script. For example, for Python use language = 'Python' and langShortName = 'py'.

The Google Sheets integration uses your own Google account and Apps Script. The data is stored in your own Google Sheet that only you (and anyone you share it with) can access. The script doesn't send your code or problem data to any third-party servers.

The script includes retry logic with exponential backoff for Google Sheets connections. For Anki connection issues, ensure Anki is running and AnkiConnect is installed correctly. Also, check that port 8765 is not blocked by your firewall.