Giter Site home page Giter Site logo

leetcode-com-cli's Introduction

Leetcode-com-cli

An open to use leetcode.com client. The project now is working in progress.

This project was heavily inspired by 'https://skygragon.github.io/leetcode-cli/commands#cache'

asciicast

Installation

1. Build from source

Requirement go > 1.16.

git clone https://github.com/RunningIkkyu/leetcode-com-cli.git

Change directory to the project, run

go build -o leetcode main       # Build source code.
cp leetcode /usr/local/bin/     # Copy to bin directory. 

To check if the Installation is success, run

leetcode version

Feature

View and Search

  • Show today's daily problem.
  • Show detail of a problem.
  • Get template of a problem in any language.
  • Search questions.
  • Filter questions.

Cache

  • Cache a question.
  • Delete a cache.
  • Show all cache.
  • Auto cache not AC questions.

Config

  • Set language
  • Enable/Disable color

Coding & submission

  • Use local editor to edit. (configurable)
  • Save code to leetcode.
  • Run code in leetcode server.
  • Submit solution.

Solutions & Comments

  • Show other people's solutions.
  • Show commments.

Session Management

  • Add/Update/Delete a new session.
  • Activate a session

Stat

  • Show ACed questions.
  • Show heatmap graph.
  • Show calendar graph.

Quick start

Help about any command:

leetcode help

Print the version number:

leetcode version

Show question

Show today's daily question:

leetcode show

Show question by title slug:

leetcode show two-sum

You can specify the language by -l [language] flag.

The default language of leetcode-cli is English.

Now leecode.com just support zh/en.

Show question in english:

leetcode show two-sum -l en
# or just
# leetcode show two-sum

show question in Chinese

leetcode show two-sum -l zh

or

leetcode show -l zh

leetcode-com-cli's People

Contributors

runningikkyu avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.