lc-review 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/data/problems.json +103584 -0
- package/dist/index.mjs +104008 -0
- package/package.json +27 -0
- package/src/core.test.ts +95 -0
- package/src/core.ts +60 -0
- package/src/data.ts +10 -0
- package/src/index.ts +138 -0
- package/src/problemset-parser.ts +31 -0
- package/src/review.ts +160 -0
- package/tsconfig.json +39 -0
- package/tsdown.config.ts +5 -0
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# lc-review
|
|
2
|
+
|
|
3
|
+
[](#)
|
|
4
|
+
|
|
5
|
+
`lc-review` is a command-line tool designed to help you manage and review your
|
|
6
|
+
LeetCode problems using the SuperMemo 2 (SM2) algorithm for spaced repetition.
|
|
7
|
+
It processes your problem-solving logs and generates a prioritized list of
|
|
8
|
+
problems to review based on their due dates and frustration scores.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm i -G lc-review
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
Show the next `n` problems to review (default: 1):
|
|
19
|
+
|
|
20
|
+
- `lc-review next [n]`
|
|
21
|
+
|
|
22
|
+
Example:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
lc-review next 3
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Record a solved attempt (grade 1-5):
|
|
29
|
+
|
|
30
|
+
- `lc-review add <problem_number> <grade>`
|
|
31
|
+
|
|
32
|
+
Example:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# add a problem result
|
|
36
|
+
lc-review add 1234 4
|
|
37
|
+
```
|