A template project for using LeetCode practice.
The only dependency is leetcode-practice.
# Install dependencies with npm
npm i
# Or with yarn
yarnAfter installing dependencies, run the command npm run lc to create today's question.
# Create today's question
npm run lc You will see the console output, and the question will be created in the src directory.
yarn run v1.22.19
$ lc -d src
MODE: today
้ข็ฎ[2235.ๅฐๆ ้ข้ฆๅญๆฏๅคงๅ]่ทๅๆๅ!
้ข็ฎๆไปถๅฐๅไธบ:file:///Users/mac-106/wh131462/workspace/LeetcodePracticeTemplate/src/2235.capitalize-the-title/question.js:35
โจ Done in 2.96s.To check your solution, run the command npm run lk.
# Check solution
npm run lkYou will see the results (the example shows an empty code):
yarn run v1.22.19
$ lk -d src
MODE: today
้ข็ฎ[2235.ๅฐๆ ้ข้ฆๅญๆฏๅคงๅ]ๆฃๆต็ปๆ:
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโ
โ ๆต่ฏ็ปๆ โ ้ขๆ็ปๆ โ ๆง่ก็ปๆ โ ๆง่ก็จๆถ โ ๅ
ๅญๅ ็จ โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโค
โ ๆช้่ฟ โ "Capitalize The Title" โ โ 0.5894ms โ 2.42 KB โ
โ ๆช้่ฟ โ "First Letter of Each Word" โ โ 0.0182ms โ 2.56 KB โ
โ ๆช้่ฟ โ "i Love Leetcode" โ โ 0.0087ms โ 2.56 KB โ
โโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโ
็นๅป่ทณ่ฝฌๅฐ้ข็ฎๆไบค: https://leetcode.cn/problems/capitalize-the-title/
โจ Done in 0.36s.To search for a question, use lf.
# Search for a question
npm run lfFollow the prompts to search for what you want.
# For example, searching for the two number sum question
yarn run v1.22.19
$ lf -d src
? ่ฏท้ๆฉๆฅๆพ็ๆจกๅผ? ๅ
ณ้ฎ่ฏๆ็ดข
? ่ฏท่พๅ
ฅๅ
ณ้ฎ่ฏ two number sum
? ่ฏท้ๆฉ้ข็ฎ 1.ไธคๆฐไนๅ
1
MODE: identity
้ข็ฎ[1.ไธคๆฐไนๅ]่ทๅๆๅ!
้ข็ฎๆไปถๅฐๅไธบ:file:///Users/mac-106/wh131462/workspace/LeetcodePracticeTemplate/src/1.two-sum/question.js:30
โจ Done in 13.68s.For more information about leetcode-practice, please check the GitHub repository: leetcode-practice