CLI tool for LeetCode practice in the terminal
Top 55.8% on sourcepulse
This tool provides a command-line interface for LeetCode users, automating the process of problem fetching, code generation, local testing, and submission. It aims to streamline the competitive programming workflow, allowing users to manage their LeetCode practice entirely within the terminal.
How It Works
Leetgo leverages LeetCode's GraphQL API to interact with the platform. Upon initialization, it can fetch problem details, generate skeleton code in various languages, and create test case files. Its core advantage lies in its local testing capabilities, which allow users to run their solutions against provided test cases using their preferred IDE and debugger, significantly improving the development and debugging cycle.
Quick Start & Requirements
brew install j178/tap/leetgo
), Scoop (scoop install j178/leetgo
), or go install github.com/j178/leetgo@latest
.leetgo init -t <us or cn> -l <lang>
leetgo pick <id or name>
, leetgo test last
, leetgo submit last
.Highlighted Details
leetcode.com
and leetcode.cn
.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
leetcode.com
.6 days ago
1 day