@@ -210,15 +210,15 @@ Example of checking today's solution:
210
210
workspace/leetcode-practice [dev●] » lk -d src -t
211
211
MODE: today
212
212
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/
220
213
```
221
214
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
+
222
222
##### [ 2] . Check Specified Solution [ ` -i ` /` --identity ` + ` <identity> ` ]
223
223
224
224
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:
238
238
workspace/leetcode-practice [dev●] » lk -d src 2581
239
239
MODE: identity
240
240
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/
249
241
```
250
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/ >
249
+
251
250
##### [ 3] . Check Randomly Obtained Solution [ ` -r ` /` --random ` ]
252
251
253
252
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:
263
262
workspace/leetcode-practice [dev●] » lk -r
264
263
MODE: random
265
264
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/
274
265
```
275
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/ >
274
+ >
276
275
> Note: Ensure that ` lc -r ` has been executed before this command to create a random problem.
277
276
278
277
##### [ 4] . Easy Mode (Interactive Checking) [ ` -e ` /` --easy ` ]
@@ -291,18 +290,18 @@ workspace/leetcode-practice [dev●] » lk -e
291
290
? Select the mode of problem checking: identity
292
291
? Enter the problem number: 41
293
292
? 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
304
293
```
305
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
304
+
306
305
#### 3. Problem Lookup - ` lf `
307
306
308
307
To be developed...
@@ -403,7 +402,7 @@ Update completed~Enjoy your use~
403
402
404
403
# ## Using the Forked Project
405
404
406
- # #### [0]. Dependency Installation
405
+ # ### [0]. Dependency Installation
407
406
408
407
Before using, install dependencies using a package manager.
409
408
@@ -418,7 +417,7 @@ The commands in the forked project are the same as those in the CLI usage parame
418
417
419
418
> 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` .
420
419
421
- # #### [1]. Create Solution [`lc`]
420
+ # ### [1]. Create Solution [`lc`]
422
421
423
422
Refer to the ` lc` part of the CLI for parameters: [lc](# 1-creating-solutions---lc)
424
423
@@ -442,7 +441,7 @@ Problem file address is:/Users/mac-106/wh131462/workspace/leetcode-practice/src/
442
441
✨ Done in 1.06s.
443
442
` ` `
444
443
445
- # #### [2]. Check Solution [`lk`]
444
+ # ### [2]. Check Solution [`lk`]
446
445
447
446
Refer to the ` lk` part of the CLI for parameters: [lk](# 2-checking-solutions---lk)
448
447
@@ -462,23 +461,23 @@ yarn run v1.22.19
462
461
$ node bin/lk.js -d src 1314
463
462
MODE: identity
464
463
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.
473
464
` ` `
474
465
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`]
476
475
477
476
Refer to the ` lf` part of the CLI for parameters: [lf](# 3-problem-lookup---lf)
478
477
479
478
To be developed...
480
479
481
- # #### [4]. Update [`update`]
480
+ # ### [4]. Update [`update`]
482
481
483
482
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.
484
483
0 commit comments