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
@@ -32,28 +32,34 @@ A Chrome extension that helps you learn and understand Leetcode solutions by pro
32
32
33
33
## Usage
34
34
35
+
### Access video solutions
36
+
1. Navigate to a Leetcode problem page (e.g., `https://leetcode.com/problems/valid-parentheses`).
37
+
2. Click the 'Solutions' tab.
38
+
3. A video explanation of the solution will be injected into the page if available.
39
+
40
+
### Get your code's time & space complexity
41
+
35
42
1. Navigate to a Leetcode problem page (e.g., `https://leetcode.com/problems/valid-parentheses`).
36
43
2. Open the extension by clicking on the Leetcode Explained icon in the Chrome toolbar.
37
44
3. If not logged in, click the "Please login to ChatGPT" button to authenticate with ChatGPT.
38
45
4. Click the "Analyze Complexity" button to get the time and space complexity of the solution.
39
-
5. A video explanation of the solution will be injected into the page if available.
40
46
41
47
## Structure
42
48
43
49
The extension is organized into the following folders and files:
44
50
45
-
-`assets/`: Contains images and other static files.
51
+
-`assets/`: Contains images and the json data of leetcode problems and their embedded urls
46
52
-`src/`: Contains the main source files for the extension.
47
-
-`background/`: Contains background script and related files.
48
-
-`chatgpt/`: Contains ChatGPT related files.
49
-
-`content-script/`: Contains content scripts that interact with the Leetcode website.
50
-
-`popup/`: Contains the popup UI for the extension.
51
-
-`manifest.json`: The extension manifest file.
53
+
-`background/`: Tells content script to add video if tab url matches a leetcode problem name
54
+
-`chatgpt/`: Stores auth token when user logs into ChatGPT. ChatGPT is used to get the user's code complexity.
55
+
-`content-script/`: Adds video onto the page. Gets user's code to send to ChatGPT.
56
+
-`popup/`: Contains the 'Analyze Complexity' button
57
+
-`manifest.json`: Metadata such as version, permissions, files, etc.
52
58
53
59
## Configuration
54
60
55
61
The extension configuration is contained in the `manifest.json` file. You can update the extension's name, version, description, permissions, and other settings in this file.
56
62
57
63
## Browser Compatibility
58
64
59
-
Leetcode Explained has been tested on the Google Chrome browser. It may work on other Chromium-based browsers, but compatibility is not guaranteed.
65
+
Leetcode Explained works on most Chromium-based browsers. Other browsers, such as Mozilla Firefox, currently aren't supported.
0 commit comments