Skip to content

leetcode-tools/leetcode-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 24, 2017
cdb43b0 · Jul 24, 2017
Jun 5, 2017
Jun 1, 2017
May 30, 2017
Jul 19, 2017
Jun 5, 2017
Jul 24, 2017
Jul 24, 2017
Jul 19, 2017
Jul 24, 2017
Dec 8, 2016
Aug 22, 2016
Aug 16, 2016
May 5, 2017
Jul 23, 2017
Jul 18, 2017

Repository files navigation

leetcode-cli

A cli tool to enjoy leetcode!

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

npm version Releases license Build Join chat at https://gitter.im/skygragon/leetcode-cli

Installation GuideDocumentationsCommandsAdvanced Tips

  • A very EFFICIENT way to fight problems.
  • CACHING problems locally thus you can easily navigate & think it offline.
  • Do everything in CLI, no one even knows you are doing leetcode :p
  • GENERATING source code template for further coding.
  • Support live TEST and SUBMIT againts leetcode.com.
  • AUTO LOGIN among multiple sessions with single leetcode account.
  • Retrieve your previous SUBMISSION thus you can easily backup and manage your code.

Showcases

help/user/list/show/test

screenshot1

test/submit/stat/submission

screenshot2

Quick Start

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

About

A cli tool to enjoy leetcode!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.6%
  • Other 1.4%