1.0.10 • Published 6 years ago

lintcode-cli v1.0.10

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

lintcode-cli

Demo

This is an example with Visual Studio Code editor, you can use any editor as you like. demo

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 for problem_name and language
  • v1.0.5
    • add discuss command for submit file to discuss
  • v1.0.2
    • basic commands for login, logout, get, submit
1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago