Skip to content

Commit 0207f59

Browse files
committed
doc: rechange cn and en README table
1 parent 63dab20 commit 0207f59

File tree

2 files changed

+86
-221
lines changed

2 files changed

+86
-221
lines changed

README.md

+45-46
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,15 @@ Example of checking today's solution:
210210
workspace/leetcode-practice [dev●] » lk -d src -t
211211
MODE: today
212212
Check result for problem [2581.Count Possible Trees]:
213-
┌─────────┬─────────────┬─────────────────┬──────────────────┬────────────────┬──────────────┐
214-
│ (index) │ Test Result │ Expected Result │ Execution Result │ Execution Time │ Memory Usage │
215-
├─────────┼─────────────┼─────────────────┼──────────────────┼────────────────┼──────────────┤
216-
│ 0 │ 'Failed''3' │ undefined │ '0.0921ms''2.52 KB'
217-
│ 1 │ 'Failed''5' │ undefined │ '0.0119ms''2.66 KB'
218-
└─────────┴─────────────┴─────────────────┴──────────────────┴────────────────┴──────────────┘
219-
Click to jump to problem submission: https://leetcode.com/problems/count-number-of-possible-root-nodes/
220213
```
221214

215+
| index | Test Result | Expected Result | Execution Result | Execution Time | Memory Usage |
216+
| --- | --- | --- | --- | --- | --- |
217+
| 0 | 'Failed' | '3' | undefined | 0.0921ms | 2.52 KB |
218+
| 1 | 'Passed' | '5' | undefined | 0.0119ms | 2.66 KB |
219+
220+
> Click to jump to problem submission: <https://leetcode.com/problems/count-number-of-possible-root-nodes/>
221+
222222
##### [2]. Check Specified Solution [`-i`/`--identity` + `<identity>`]
223223

224224
Type `lk` followed by the problem number in the terminal to check the specified solution in the current working directory.
@@ -238,16 +238,15 @@ Example of checking the specified solution:
238238
workspace/leetcode-practice [dev●] » lk -d src 2581
239239
MODE: identity
240240
Check result for problem [2581.Count Possible Trees]:
241-
242-
┌─────────┬─────────────┬─────────────────┬──────────────────┬────────────────┬──────────────┐
243-
│ (index) │ Test Result │ Expected Result │ Execution Result │ Execution Time │ Memory Usage │
244-
├─────────┼─────────────┼─────────────────┼──────────────────┼────────────────┼──────────────┤
245-
│ 0 │ 'Passed''3''3''0.1668ms''2.52 KB'
246-
│ 1 │ 'Passed''5''5''0.0234ms''2.66 KB'
247-
└─────────┴─────────────┴─────────────────┴──────────────────┴────────────────┴──────────────┘
248-
Click to jump to problem submission: https://leetcode.com/problems/count-number-of-possible-root-nodes/
249241
```
250242

243+
| index | Test Result | Expected Result | Execution Result | Execution Time | Memory Usage |
244+
| --- | --- | --- | --- | --- | --- |
245+
| 0 | 'Passed' | '3' | '3' | 0.1668ms | 2.52 KB |
246+
| 1 | 'Passed' | '5' | '5' | 0.0234ms | 2.66 KB |
247+
248+
> Click to jump to problem submission: <https://leetcode.com/problems/count-number-of-possible-root-nodes/>
249+
251250
##### [3]. Check Randomly Obtained Solution [`-r`/`--random`]
252251

253252
Type `lk` followed by the `-r` parameter in the terminal to check the previously randomly obtained solution in the current working directory.
@@ -263,16 +262,16 @@ Example of checking a randomly obtained solution:
263262
workspace/leetcode-practice [dev●] » lk -r
264263
MODE: random
265264
Check result for problem [41.First Missing Positive]:
266-
┌─────────┬─────────────┬─────────────────┬──────────────────┬────────────────┬──────────────┐
267-
│ (index) │ Test Result │ Expected Result │ Execution Result │ Execution Time │ Memory Usage │
268-
├─────────┼─────────────┼─────────────────┼──────────────────┼────────────────┼──────────────┤
269-
│ 0 │ 'Failed''3' │ undefined │ '0.0896ms''2.42 KB'
270-
│ 1 │ 'Failed''2' │ undefined │ '0.0110ms''2.56 KB'
271-
│ 2 │ 'Failed''1' │ undefined │ '0.0045ms''2.56 KB'
272-
└─────────┴─────────────┴─────────────────┴──────────────────┴────────────────┴──────────────┘
273-
Click to jump to problem submission: https://leetcode.com/problems/first-missing-positive/
274265
```
275266

267+
| index | Test Result | Expected Result | Execution Result | Execution Time | Memory Usage |
268+
| --- | --- | --- | --- | --- | --- |
269+
| 0 | 'Failed' | '3' | undefined | 0.0896ms | 2.42 KB |
270+
| 1 | 'Failed' | '2' | undefined | 0.0110ms | 2.56 KB |
271+
| 2 | 'Failed' | '1' | undefined | 0.0045ms | 2.56 KB |
272+
273+
> Click to jump to problem submission: <https://leetcode.com/problems/first-missing-positive/>
274+
>
276275
> Note: Ensure that `lc -r` has been executed before this command to create a random problem.
277276
278277
##### [4]. Easy Mode (Interactive Checking) [`-e`/`--easy`]
@@ -291,18 +290,18 @@ workspace/leetcode-practice [dev●] » lk -e
291290
? Select the mode of problem checking: identity
292291
? Enter the problem number: 41
293292
? Do you want to check the problem [ 41.first-missing-positive ] in the current directory [ /Users/mac-106/wh131462/workspace/leetcode-practice ]? Yes
294-
┌─────────┬─────────────┬─────────────────┬──────────────────┬────────────────┬──────────────┐
295-
│ (index) │ Test Result │ Expected Result │ Execution Result │ Execution Time │ Memory Usage │
296-
├─────────┼─────────────┼─────────────────┼──────────────────┼────────────────┼──────────────┤
297-
│ 0 │ 'Failed''3' │ undefined │ '0.0969ms''2.42 KB'
298-
│ 1 │ 'Failed''2' │ undefined │ '0.0139ms''2.56 KB'
299-
│ 2 │ 'Failed''1' │ undefined │ '0.0051ms''2.56 KB'
300-
└─────────┴─────────────┴─────────────────┴──────────────────┴────────────────┴──────────────┘
301-
Click to jump to problem submission: https://leetcode.com/problems/first-missing-positive/
302-
Problem [41.first-missing-positive] checked!
303-
File address is: /Users/mac-106/wh131462/workspace/leetcode-practice/41.first-missing-positive/index.js
304293
```
305294

295+
| index | Test Result | Expected Result | Execution Result | Execution Time | Memory Usage |
296+
| --- | --- | --- | --- | --- | --- |
297+
| 0 | 'Failed' | '3' | undefined | 0.0969ms | 2.42 KB |
298+
| 1 | 'Failed' | '2' | undefined | 0.0139ms | 2.56 KB |
299+
| 2 | 'Failed' | '1' | undefined | 0.0051ms | 2.56 KB |
300+
301+
> Click to jump to problem submission: <https://leetcode.com/problems/first-missing-positive/>
302+
> Problem [41.first-missing-positive] checked!
303+
> File address is: /Users/mac-106/wh131462/workspace/leetcode-practice/41.first-missing-positive/index.js
304+
306305
#### 3. Problem Lookup - `lf`
307306

308307
To be developed...
@@ -403,7 +402,7 @@ Update completed~Enjoy your use~
403402
404403
### Using the Forked Project
405404
406-
##### [0]. Dependency Installation
405+
#### [0]. Dependency Installation
407406
408407
Before using, install dependencies using a package manager.
409408
@@ -418,7 +417,7 @@ The commands in the forked project are the same as those in the CLI usage parame
418417
419418
> Note: The only difference between the scripts in the project and the scaffolding is that the `-d` parameter is specified by default, pointing to the `src` directory at the root of the project, so all commands are executed by default in `src`.
420419
421-
##### [1]. Create Solution [`lc`]
420+
#### [1]. Create Solution [`lc`]
422421
423422
Refer to the `lc` part of the CLI for parameters: [lc](#1-creating-solutions---lc)
424423
@@ -442,7 +441,7 @@ Problem file address is:/Users/mac-106/wh131462/workspace/leetcode-practice/src/
442441
✨ Done in 1.06s.
443442
```
444443
445-
##### [2]. Check Solution [`lk`]
444+
#### [2]. Check Solution [`lk`]
446445
447446
Refer to the `lk` part of the CLI for parameters: [lk](#2-checking-solutions---lk)
448447
@@ -462,23 +461,23 @@ yarn run v1.22.19
462461
$ node bin/lk.js -d src 1314
463462
MODE: identity
464463
Check result for problem [1314.Matrix Block Sum]:
465-
┌─────────┬─────────────┬─────────────────────────────────────────────┬──────────────────┬────────────────┬──────────────┐
466-
│ (index) │ Test Result │ Expected Result │ Execution Result │ Execution Time │ Memory Usage │
467-
├─────────┼─────────────┼─────────────────────────────────────────────┼──────────────────┼────────────────┼──────────────┤
468-
│ 0 │ 'Failed''[[12,21,16],[27,45,33],[24,39,28]]' │ undefined │ '0.1487ms''2.47 KB'
469-
│ 1 │ 'Failed''[[45,45,45],[45,45,45],[45,45,45]]' │ undefined │ '0.0278ms''2.61 KB'
470-
└─────────┴─────────────┴─────────────────────────────────────────────┴──────────────────┴────────────────┴──────────────┘
471-
Click to jump to problem submission: https://leetcode.com/problems/matrix-block-sum/
472-
✨ Done in 1.13s.
473464
```
474465
475-
##### [3]. Look Up Solutions [`lf`]
466+
| index | Test Result | Expected Result | Execution Result | Execution Time | Memory Usage |
467+
| --- | --- | --- | --- | --- | --- |
468+
| 0 | 'Failed' | '[[12,21,16],[27,45,33],[24,39,28]]' | undefined | 0.1487ms | 2.47 KB |
469+
| 1 | 'Failed' | '[[45,45,45],[45,45,45],[45,45,45]]' | undefined | 0.0278ms | 2.61 KB |
470+
471+
> Click to jump to problem submission: <https://leetcode.com/problems/matrix-block-sum/>
472+
> ✨ Done in 1.13s.
473+
474+
#### [3]. Look Up Solutions [`lf`]
476475
477476
Refer to the `lf` part of the CLI for parameters: [lf](#3-problem-lookup---lf)
478477
479478
To be developed...
480479
481-
##### [4]. Update [`update`]
480+
#### [4]. Update [`update`]
482481
483482
This is a special script to update the local project, which updates all non-src directories to synchronize with the latest features of the project.
484483

0 commit comments

Comments
 (0)