You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package provides a command-line tool for interracting with Leetcode to create flashcards for study,
5
-
which can then be imported into Anki.
8
+
which can then be imported into Anki. Currently, this tool supports taking in a list of URLs and outputting
9
+
problems in a format that can be imported to Anki. These cards include three fields:
10
+
1. The front of the study card, containing the question ID, Title, URL, and problem description
11
+
2. The publicly available solutions (and NeetCode solution, if available)
12
+
3. The tags associated with the problem (i.e., if the problem involves a hash map, arrays, etc...)
13
+
14
+
## Installation
15
+
```shell
16
+
$ pip install leetcode-study-tool
17
+
```
6
18
7
19
## Usage
8
20
```shell
@@ -22,6 +34,16 @@ options:
22
34
The language to generate problem(s) for. (default: None)
23
35
```
24
36
37
+
## Example
38
+
In a directory with a file named `questions.txt`, where each line is either a Leetcode problem URL or slug (or a combination of both), we can run the command
39
+
```shell
40
+
$ leetcode-study-tool -f questions.txt
41
+
```
42
+
which will generate the file `output.txt`. We can then open Anki to import these problems as demonstrated below, *ensuring to select semicolon as a field separator*.
43
+
44
+

45
+
46
+
25
47
## Roadmap
26
48
-[ ] Add support for fetching premium questions via authentification
0 commit comments