Skip to content

Commit 2169ec8

Browse files
committed
update doc for interactive mode
1 parent b5d2f02 commit 2169ec8

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

README.md

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ Over time I found that the answer varies, depending on progress, needs, and goal
1313
```git clone https://github.com/evliang/leetcode-problem-picker.git```
1414

1515
## Usage:
16-
```python lcpp.py [--topic "stack,trie,graph,dp"] [--list "airbnb, blind75, to_revisit"] [-k 5] [-i]```
16+
```python lcpp.py [-t stack trie graph dp] [--list airbnb google blind75 skipped] [-k 5] [-i]```
1717

1818
```
19-
--topic -t selects from a pool of problems associated with a subject (according to leetcode)
20-
see constants.py for list of options
19+
--topic_list -t selects from a pool of problems associated with a subject (e.g. trie, greedy, graph)
2120
--list -l chooses problems from one or more text files (comma-delimited)
22-
--count -k number of problems to get
21+
--num_problems -k number of problems to get
2322
--interactive -i interactive mode. Preferred way to input data. See section below for more info.
2423
note: no topic or list will result in a problem randomly being selected
2524
```
@@ -30,18 +29,17 @@ Displays information about a specific problem: Name, difficulty, Acceptance rate
3029

3130
## Interactive Mode:
3231
This mode selects and displays a single problem and waits for input:
33-
(TODO: provide screenshot)
3432

3533
```
3634
info displays details about problem. problem name, difficulty, acceptance rate
3735
hint displays related topics
3836
y/n,num_errs,time data regarding attempt. See Completed Problems section for more details
3937
easy mark as completed with low completion time, then selects a different problem
4038
hard adds to a hard/skipped list. selects a less similar, less challenging problem
41-
revisit
42-
refresh
43-
pause
44-
break
39+
revisit [ID] mark problem as one to revisit later
40+
refresh [ID] mark problem as one to "refresh" on later
41+
pause pause the timer
42+
break take a break. restarts the timer
4543
quit stop the program
4644
```
4745

@@ -58,26 +56,4 @@ time integer. number of minutes spent on the problem
5856
date DateTime. date completed
5957
num_errs float. # mistakes made. Float to differentiate minor from major errors.
6058
```
61-
3. interactive mode: Solve a problem after it is assigned, then record results before getting the next problem. Appends results to completed.csv.
62-
63-
## Keeping these lists up-to-date
64-
constants.py contains list of problem numbers associated for every subject
65-
Also included are company files. Possibly outdated, came from another repo.
66-
67-
If you have leetcode premium and want to keep this info up-to-date:
68-
1. Visit desired problem set e.g. ["Facebook"](https://leetcode.com/company/facebook/)
69-
2. Display All rows in one page
70-
3. open up browser's Developer Tools (F12), and from console, run
71-
72-
```console.log(Array.from(document.querySelectorAll('.reactable-data tr td[label="#"]')).map(x => x.textContent).toString())```
73-
74-
4. Copy the resulting list into text file
75-
5. Send PR? :)
76-
77-
## TODO
78-
79-
1. Clean up and prettify what I have. Stay tuned.
80-
2. Support multiple ways to handle completed problems
81-
3. Improve interactive mode
82-
4. Level Up: User maintains a list of attempted problems. Program combines this with each problem’s "acceptance rate" to approximate a "skill range" for each topic (e.g. Hard 24-28% for Trees, Medium 31-45% for graphs).
83-
5. Weighted random
59+
3. interactive mode: Solve a problem after it is assigned, then record results before getting the next problem. Appends results to completed.csv.

0 commit comments

Comments
 (0)