Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A cli tool to enjoy leetcode!

License

NotificationsYou must be signed in to change notification settings

jkong85/Interview-leetcode-cli

 
 

Repository files navigation

npm versionlicenseBuildJoin chat at https://gitter.im/skygragon/leetcode-cli

A cli tool to enjoy leetcode!

Great thanks to leetcode.com, an really awesome website!

What can it do?

  • A veryEFFICIENT way to fight problems.
  • CACHING problems locally thus you can easily navigate & think it offline.
  • Do everything inCLI, no one even knows you are doing leetcode :p
  • GENERATING source code template for further coding.
  • Support liveTEST andSUBMIT againts leetcode.com.
  • AUTO LOGIN among multiple sessions with single leetcode account.
  • Retrieve your previousSUBMISSION thus you can easily backup and manage your code.

Prerequisites

node.js (npm included) required, please follow the installation guide:

Install

From npm repo:

$ sudo npm install -g leetcode-cli

From source code:

$ git clone http://github.com/skygragon/leetcode-cli$ cd leetcode-cli && npm install && sudo npm install -g .

Quick Start

Read help first                         $ leetcode helpLogin with your leetcode account        $ leetcode user -lBrowse all problems                     $ leetcode listChoose one problem                      $ leetcode show 1 -g -l cppCoding it!Run test(s) and pray...                 $ leetcode test ./two-sum.cpp -t '[3,2,4]\n7'Submit final solution!                  $ leetcode submit ./two-sum.cpp

There is More...

About

A cli tool to enjoy leetcode!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript98.5%
  • Other1.5%

[8]ページ先頭

©2009-2025 Movatter.jp