Skip to content

Commit 6ba72cf

Browse files
committed
README.md update
1 parent dbd9f34 commit 6ba72cf

File tree

1 file changed

+30
-13
lines changed

1 file changed

+30
-13
lines changed

README.md

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,70 @@
44
55
## Features
66

7-
* **Problem Fetching:** LeetCode.py fetches the problem details directly from `leetcodeDb.json` ~~LeetCode's official API, allowing you to access all the necessary information about a problem~~.
7+
* **Problem Fetching:** LeetCode.py fetches the problem details directly from ~~`leetcodeDb.json`~~ LeetCode's official API, allowing you to access all the necessary information about a problem.
88

99
* **Code Snippet Retrieval:** With LeetCode.py, you can easily retrieve code snippets for a specific problem.
1010

1111
* **Code Editing:** You can modify and edit the code directly within the terminal, saving you the hassle of switching between multiple applications.
1212

1313
* **ASCII Art:** LeetCode.py provides a beautiful ASCII art for each problem, making your coding experience more enjoyable.
1414

15-
* **Language Support:** LeetCode.py supports only **Python**.
15+
* **Language Support:** LeetCode.py supports ~~only **Python**~~ all languages except Python2.
1616

1717
### Installation
1818
```
1919
git clone https://github.com/hrdkmishra/leetcode.py.git
2020
cd leetcode.py
21+
python3 -m venv venv
22+
source venv/bin/activate
2123
pip install -r requirements.txt
2224
```
2325

2426
### Usage
2527

28+
#### note: `lc.py --lib` for fixing python-leetcode lib issue
29+
2630
First you need to enter your leetcode session and crsf token
2731
```
28-
python leetcode.py
32+
python lc.py
2933
```
3034
to fetch the problem
3135
```
32-
python leetcode.py -q/--question <question_number>
36+
python lc.py -q/--question <question_number>
3337
```
3438
![img_1.png](images/img_1.png)
3539

36-
to fetch problems in range
40+
to fetch problems in range (might not work always)
3741
```
38-
python leetcode.py -q/--question <question_number>:<question_number>
42+
python lc.py -q/--question <question_number>:<question_number>
3943
```
4044
![](./images/image.png)
4145

4246
to solve the problem
4347
```
44-
python leetcode.py -s/--solve <question_number>
48+
python lc.py -s/--solve <question_number>
4549
```
4650
![img.png](images/img.png)
4751

52+
to test the code
53+
```
54+
python lc.py -t/--test code_editor/filename
55+
```
56+
57+
to submit the code
58+
```
59+
python lc.py -u/--submit code_editor/filename
60+
```
61+
4862
## Features to be added
4963

50-
1. [ ] code submission
51-
2. [ ] testing the user code
52-
3. [ ] code submission status
53-
4. [ ] code submission result
54-
5. [ ] code submission result details
55-
6. [ ] -h/--help
64+
1. [x] code submission
65+
2. [x] testing the user code
66+
3. [x] code submission status
67+
4. [x] code submission result
68+
5. [x] code submission result details
69+
6. [x] -h/--help
5670
7. [ ] color theme
71+
8. [x] fixed python-leetcode lib issue
72+
9. [x] add support for other languages except python2
73+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy