Skip to content

iliayatsenko/leetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetUp

A streamlined LeetCode practice environment with automatic problem setup and multi-language support.

Features

  • Fetch LeetCode problems automatically from API
  • Generate problem descriptions, hints, and test scaffolding
  • Support for several programming languages (Go, PHP)
  • Run tests with a single command

Usage

1. Start the environment

docker-compose up -d

2. Setup a new problem

docker exec leetup setup <language> <problem-slug-or-link>

Examples:

docker exec leetup setup go two-sum
docker exec leetup setup php https://leetcode.com/problems/two-sum/

3. Generate unit tests using Claude Code custom command

After setting up a new problem, generate comprehensive unit tests (in Claude Code terminal):

/leetup-tests <problem-directory>

Example:

/leetup-tests 1-two-sum-GO

4. Implement your solution in the solution.<lang> file

5. Run tests

docker exec leetup check <problem-directory>

Example:

docker exec leetup check 1-two-sum-GO

6. Generate progressive hints

If stuck, generate a series of progressive hints to guide you through the problem (in Claude Code terminal):

/leetup-hints <problem-directory>

Example:

/leetup-hints 3-longest-substring-without-repeating-characters-GO

7. Review your solution

Get detailed feedback on your completed solution including complexity analysis and optimization suggestions (in Claude Code terminal):

/leetup-review <problem-directory>

Example:

/leetup-review 1-two-sum-GO

Requirements

  • Docker
  • Docker Compose
  • Claude Code

About

Solve leetcode in a comfort of your own IDE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published