dengbiao / leetcode-cli

A cli tool to enjoy leetcode!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ReleasesInstallDocsCommandsAdvancedPlugins

  • 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.
  • More PLUGINS to enjoy extra useful features!

Showcases

screenshot1

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!

License:MIT License


Languages

Language:JavaScript 98.8%Language:Shell 0.9%Language:Smarty 0.3%