Skip to content

Commit 1913db2

Browse files
committed
feat: initial implementation 🚀
0 parents  commit 1913db2

40 files changed

+24074
-0
lines changed

.babelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
// "react-app"
6+
],
7+
"plugins": ["@babel/plugin-proposal-class-properties"]
8+
}

.eslintrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "react-app",
3+
"plugins": ["simple-import-sort"],
4+
"globals": {
5+
"chrome": "readonly"
6+
},
7+
"rules": {
8+
// increase the severity of rules so they are auto-fixable
9+
"simple-import-sort/imports": "error",
10+
"simple-import-sort/exports": "error"
11+
}
12+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# zip
13+
/zip
14+
15+
# misc
16+
.DS_Store
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
.history
22+
23+
# secrets
24+
secrets.*.js

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"requirePragma": false,
5+
"arrowParens": "always"
6+
}

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cSpell.words": [
3+
"Davinci"
4+
]
5+
}

LeetCodeGPT.gif

1.71 MB
Loading

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# LeetCodeGPT
2+
3+
![LeetCodeGPT](LeetCodeGPT.gif)
4+
5+
**LeetCodeGPT** is a Chrome extension that integrates GPT _(Generative Pre-trained Transformer)_ into the [LeetCode](https://leetcode.com), allowing users to automatically solve LeetCode problems with the click of a button.
6+
7+
## 🚀 Features
8+
9+
- [x] Auto solve problems
10+
11+
### 💪 Roadmap
12+
13+
- [ ] Add Advanced hint
14+
- [ ] Publish to Chrome Web store
15+
16+
## Installation
17+
18+
To install the extension, follow these steps:
19+
20+
1. Download the extension from [beta/leetcode-gpt-0.0.0.zip](beta/leetcode-gpt-0.0.0.zip).
21+
2. Unzip the downloaded extension.
22+
3. Open Google Chrome and go to the Extensions page.
23+
4. Enable `Developer mode`.
24+
5. Click on `Load unpacked` and select the unzipped extension files.
25+
26+
After installing the extension, you will need to set your `OpenAI API Key` in the extension settings. To do this, click on the extension icon in the top right corner of your browser window.
27+
28+
In the extension page, enter your `OpenAI API Key` and choose the `OpenAI Model` you want to use and click `Save`.
29+
30+
You can now use the extension to solve LeetCode problems.
31+
32+
## Usage
33+
34+
Once the extension is installed and your API Key is set, go to the [LeetCode](https://leetcode.com/problemset/all/) website and navigate to the problem that you want to solve. The extension will add a `Solve` button next to the `Submit` button to the problem page.
35+
36+
Clicking the `Solve` button will prompt the extension to use **OpenAI** to generate a solution to the problem. The generated solution will be automatically added to the code section.
37+
38+
## License
39+
40+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
41+
42+
## Acknowledgments
43+
44+
**LeetCodeGPT** was created using the OpenAI GPT APIs and was inspired by similar projects that use AI to solve programming problems.
45+
46+
If you have any questions or feedback, please feel free to contact us. Thank you for using **LeetCodeGPT**!

beta/leetcode-gpt-0.0.0.zip

1.32 MB
Binary file not shown.

0 commit comments

Comments
 (0)