A free, open source browser extension that enhances Leetcode problems with code solutions, video explanations, and GPT code analysis.
1️⃣ Solution videos: Adds the top 5 youtube solution videos into each problem
2️⃣ Complexity Analysis Reads your code and gets the time & space complexity using GPT
3️⃣ Code Generation Reads your code, fixes bugs, and generates the optimal solution code for the given problem using GPT. For more accurate results, open the description tab so GPT can read the problem's description and constraints.
4️⃣ Elo ratings Adds difficulty ratings into weekly/biweekly contest problems (~1500 added)
5️⃣ Hard Mode Hide the Leetcode problem examples to simulate a real coding interview environment. Available through the extension's settings.
git clone https://github.com/zubyj/leetcode-explained.git
cd leetcode-explained
npm install && tsc
chrome://extensions
in the search bar.Now you can test the latest dev version and contribute new features! After you make changes, remember to run tsc to compile the TS files into javascript.
For solution videos open a Leetcode problem's solutions tab
If you pin the extension in the toolbar & login into ChatGPT in your browser, you can use the following 2 GPT buttons:
Please ensure your Leetcode solution is open so the extension can read your code from the page.
We welcome contributions! Please see the CONTRIBUTING.md for details on how to contribute to the project.
We aim to foster an inclusive and respectful environment. Please read the CODE_OF_CONDUCT.md for more information.
Leetcode Explained is MIT licensed.
If you encounter any issues or have any questions, please open an issue on this repository.
This extension doesn't collect any personal data. All the code analysis and generation happens on your local machine.
If you like the extension, please leave a review in the Reviews tab. For questions or bugs, feel free to open an issue on Github.
Check out these cool datasets used in Leetcode Explained