Skip to content

chanpreet3000/Leetcoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub stars GitHub forks GitHub issues

Leetcoder

Last verified working on 1 May 2026

Actively maintained Last commit

Automate login, solving, and scraping on LeetCode so you can focus on learning — not busywork.


This project is maintained

Leetcoder is actively maintained. If something breaks after a LeetCode UI change, or you hit a rough edge on Windows, speak up — that helps everyone.

  • Bug or regression? Open a GitHub issue with steps to reproduce and your environment (Windows version, Chrome path, what you expected vs. what happened).
  • Feature idea or question? Open an issue — questions are welcome too.
  • Want to reach out directly? Message me on GitHub (@chanpreet3000) or use the contact options on my profile.

Stars and PRs are welcome. Even a short issue with a screenshot often saves hours for the next person.


Important notes

  1. Works on LeetCode’s newer dynamic layout only.
  2. Windows only for now. PRs that add solid macOS support are very welcome.
  3. Use responsibly and in line with LeetCode’s terms.
  4. Privacy: no data is sent anywhere outside your machine by this tool (see your own Chrome/network setup as usual).

Verified working: 1 May 2026 — if you’re reading this months later, check the “Last commit” badge above; regular commits usually mean the layout selectors are still being kept in sync.

Leetcoder is built to make problem-solving and scraping more efficient. With its automated flow, Leetcoder can solve on the order of ~200 problems in about an hour (network and UI permitting).

Features

  1. Automated problem solving

    Automates solving LeetCode questions from your saved solutions.

  2. Seamless login

    Handles authentication via a persistent Chrome profile.

  3. Solution scraping

    Scrapes and organizes accepted solutions into a local archive.

  4. Resume where you left off

    Remembers solved problem names so runs can continue after interruption.

Usage disclaimer

Leetcoder is for educational use. Do not use it to misrepresent your progress or break LeetCode’s rules. Always follow LeetCode’s terms of service and community guidelines.

Getting started

  1. Clone the repo.
    git clone https://github.com/chanpreet3000/Leetcoder
  2. Open the project in your editor.
  3. In the terminal: yarn install
  4. Create a .env in the project root:
    ; Used only for the local Chrome profile folder name.
    USER_EMAIL=your_email_here
    ; Chrome → chrome://version/ → Executable Path
    GOOGLE_CHROME_EXECUTABLE_PATH=C:/Program Files/Google/Chrome/Application/chrome.exe
    
  5. Run: node index.js

Where data lives

Kind Path
Scraped solutions ./UserData/your_email/LeetcoderData/ScrapedSolutions
Solved problem list (resume) ./UserData/your_email/LeetcoderData/SolvedProblems.json
Chrome profile (stay logged in) ./UserData/your_email/ProfileData

Compatibility

Leetcoder targets Windows. Behavior on macOS is not supported today — contributions to fix that are welcome.

Contributing

Issues and pull requests are welcome on GitHub. See This project is maintained above if you’re unsure how to report something.

License

Open source under the MIT License. Free to use and modify for fun or learning; no warranty. If you build on it, a star or mention is appreciated but not required.

About

Automate your Leetcode problem-solving experience with Leetcoder. This powerful tool can automatically solve Leetcode questions, handle login seamlessly, scrape and organize your accepted solutions, and even resume solving questions from where you left off.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors