@yunyoujun/leetcode
v0.0.3
Published
[![npm (scoped)](https://img.shields.io/npm/v/@yunyoujun/leetcode)](https://www.npmjs.com/package/@yunyoujun/leetcode)
Downloads
16
Readme
@yunyoujun/leetcode
LeetCode 做题脚本工具
Install
yarn add @yunyoujun/leetcode
# yarn global add @yunyoujun/leetcode
配置 package.json
{
"scripts": {
"generate": "leet generate",
"start": "leet start",
"solve": "leet solve"
}
}
开始解题
# yarn start
leet start
跟随提示,输入题目 ID,标题,索引,难易度,将会自动建立对应文件夹并记录信息至 package.json
。
解题完毕
# yarn solve
leet solve
输入对应题目 ID,将会通过自动提交带有题目信息的 commit
。
如:git commit -m "✅ solve palindrome-number"
生成目录
# yarn generate
leet generate
题目类型
lcof
: 剑指 Offerleetcode
: LeetCodelcp
: 力扣杯custom
: 自定义