lintcode-cli
v1.0.10
Published
lintcode cli
Downloads
7
Maintainers
Readme
lintcode-cli
Demo
This is an example with Visual Studio Code
editor, you can use any editor as you like.
Install
sudo npm i -g lintcode-cli
Commands
$ lc -h
Usage: lc [options] <keywords>
Options:
-V, --version output the version number
i, --login input login
o, --logout input logout
g, --get [problem_number] [file_postfix] output problem file
s, --submit [file_name] output problem file result
j, --jiuzhang [problem_number] open jiuzhang solutions
l, --leaderboard [problem_number] open leaderboard solutions
s, --submit [file_name] d submit file to discuss
-h, --help output usage information
Example
- login:
lc i
- logout:
lc o
- get problem 1 in python:
lc g 1 py
, will download "0001-a-b-problem.py"(py for python) - submit file "0001-a-b-problem.py":
lc s 0001-a-b-problem.py
- submit file to discuss:
lc s 0001-a-b-problem.py d
, default title is the file_name - submit file to discuss with a title message:
lc s 0001-a-b-problem.py d 'your_title'
- open solution for problem 1 at jiuzhang:
lc j 1
- open leaderboard for problem 1 at lintcode:
lc l 1
Languages
- get problem 3 in python:
lc g 3 py
- get problem 3 in java:
lc g 3 java
- get problem 3 in c++:
lc g 3 cpp
- get problem 3 in javascript:
lc g 3 js
- get problem 3 in go:
lc g 3 go
Note
When you submit a solution, only the code after ### Solution
description will be submitted.
Major Version Updates
- v1.0.6
- update
discuss
command with tags forproblem_name
andlanguage
- update
- v1.0.5
- add
discuss
command for submit file to discuss
- add
- v1.0.2
- basic commands for
login
,logout
,get
,submit
- basic commands for