A productive cli tool to enjoy leetcode!
Great thanks to leetcode.com, a really awesome website!
⦙ Releases ⦙ Install ⦙ Docs ⦙ Commands ⦙ Advanced ⦙ Plugins ⦙
- A very EFFICIENT way to fight questions.
- CACHING questions to ease offline thinking.
- GENERATING source code before coding.
- Live TEST and SUBMIT with leetcode.com.
- Download your previous SUBMISSION.
- Trace your coding STATUS.
- AUTO LOGIN among multiple agents with single account.
- Multiple THEMES support.
- More PLUGINS to enjoy extra features!
Add three more features for List command.
-c
to generate .csv format file for all questions. will include companies tag and companies with 3 differnt time period column. Example useage:leetcode list -c
- combine '-z' for Chinese column output Example useage:
leetcode list -c -z
(design for better update experience for Leetcode Spreadsheet)
- combine '-z' for Chinese column output Example useage:
-o
to set .csv format file output directory. Default directory:~/.lc
-p
to filter questions by 3 different time period:1
for questions in recent 0~6 months2
for questions in recent one year3
for questions in recent two years- Should be used with
-t
and with company filter words - Example useage:
leetcode list -t netfilx -p 1
Add updateData function for Company plugin. function will include following feature.
- Update company tag if current user is vip user.
- Will use default value to set company tag if current user is not vip user.(data updated at 2021.03.19)
- Will store current company tags setting in
~/.lc/leetcode/cache/COMPONIES.json
and~/.lc/leetcode/cache/TAGS.json
and try to update it if the file is missing.
Read help first $ leetcode help
Login with your leetcode account $ leetcode user -l
Browse all questions $ leetcode list
Choose one question $ 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