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
Enhance functionality with improved problem handling and UI
Added problem tags, acceptance rate, and descriptions to logs for better user experience. Introduced default values for CLI arguments to streamline input handling. Minor logging improvements, upgraded dependencies, and refined problem fetching logic for robustness.
Solve a randomly selected LeetCode problem based on difficulty.
65
-
Random Practice Mode allows you to solve a randomly selected LeetCode problem. Enhanced difficulty classification includes options such as `easy`, `medium`, `hard`, or a combination (e.g., `--difficulty easy,medium`).
78
+
Solve a randomly selected LeetCode problem based on difficulty. Random Practice Mode allows you to solve a randomly selected LeetCode problem. Enhanced difficulty classification includes options such as `easy`, `medium`, `hard`, or a combination (e.g., `--difficulty easy,medium`).
79
+
66
80
```bash
67
81
python3 main.py --mode random --difficulty medium
68
82
```
@@ -72,6 +86,18 @@ Optional arguments:
72
86
-`--open-in-browser`: Opens the problem in a browser window.
73
87
-`--editor`: Specify a code editor for writing solutions. Supported editors: `default`, `vim`, `nano`, etc.
Custom Modes enable solving specific problems or sets of problems by providing one or multiple problem slugs (e.g., `--problems two-sum,three-sum`).
@@ -84,6 +110,18 @@ Optional arguments:
84
110
-`--open-in-browser`: Opens the problem in a browser window.
85
111
-`--editor`: Specify the preferred code editor (e.g., `vim`, `nano`). Default is the system-configured default editor.
86
112
113
+
```text
114
+
Welcome to 🦑 SquidLeet!
115
+
🔐 Using authenticated session
116
+
Selected 🧩 Custom Practice Mode
117
+
🎯 Problem Selected: Two Sum
118
+
✨ Difficulty: Easy
119
+
🔗 URL: https://leetcode.com/problems/two-sum
120
+
🏷️ Tags: Array, Hash Table
121
+
📈 Acceptance Rate: 54.67%
122
+
...
123
+
```
124
+
87
125
### Study Plan Mode
88
126
89
127
Study Plan Mode allows you to fetch random problems based on a specific study plan. You can specify the study plan name to fetch problems from that plan.
@@ -96,6 +134,18 @@ Optional arguments:
96
134
-`--open-in-browser`: Opens the problem in a browser window.
97
135
-`--editor`: Specify the preferred code editor (e.g., `vim`, `nano`). Default is the system-configured default editor.
98
136
137
+
```text
138
+
Welcome to 🦑 SquidLeet!
139
+
🔐 Using authenticated session
140
+
Selected 🎯 Study Plan Mode: top-interview-150
141
+
🎯 Problem Selected: Game of Life
142
+
✨ Difficulty: Medium
143
+
🔗 URL: https://leetcode.com/problems/game-of-life
144
+
🏷️ Tags: Array, Matrix, Simulation
145
+
📈 Acceptance Rate: 70.65%
146
+
...
147
+
```
148
+
99
149
## Configurations
100
150
Squidleet uses a `LEETCODE_SESSION` cookie for authentication. Setting the `LEETCODE_SESSION` environment variable is necessary for all operations, including fetching and submitting problems.
0 commit comments