Skip to content

Commit 587ac6f

Browse files
committed
readme update
1 parent 4d80f4d commit 587ac6f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,31 @@ options:
3030
-v, --version show program's version number and exit
3131
3232
Commands:
33-
{config,stats,list,problem,today,submission,submit}
33+
{config,stats,list,problem,today,submission,submit,check}
3434
config Configure the CLI
3535
stats Display statistics
3636
list Display problem list
3737
problem Display problem
3838
today Display today's problem.
3939
submission Download submission code
4040
submit Submit code answer
41+
check Check code answer on example test
4142
```
43+
44+
## Example workflow
45+
You can search for the problem in multiple ways: using lists, fetching question of the day, random question or using specific ID.
46+
47+
Take problem `1`, show its contents in the terminal and create a file with the code snippet:
48+
```
49+
leet problem 1 -fc
50+
```
51+
52+
Now try to solve the problem. After that you can check the code against example test case:
53+
```
54+
leet test <filename>
55+
```
56+
57+
Then try to submit the solution and wait for the response:
58+
```
59+
leet submit <filename>
60+
```

0 commit comments

Comments
 (0)