A Chrome extension that helps you learn and understand Leetcode solutions by providing video explanations and complexity for each solution.
Available in the Chrome Web Store
- Download the Leetcode Explained repository.
- Unzip the folder if needed.
- Open Chrome and go to
chrome://extensions
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the
src
folder within the unzipped Leetcode Explained folder.
- Navigate to a Leetcode problem page (e.g.,
https://leetcode.com/problems/valid-parentheses
). - Open the extension by clicking on the Leetcode Explained icon in the Chrome toolbar.
- If not logged in, click the "Please login to ChatGPT" button to authenticate with ChatGPT.
- Click the "Analyze Complexity" button to get the time and space complexity of the solution.
- A video explanation of the solution will be injected into the page if available.
The extension is organized into the following folders and files:
assets/
: Contains images and other static files.src/
: Contains the main source files for the extension.background/
: Contains background script and related files.chatgpt/
: Contains ChatGPT related files.
content-script/
: Contains content scripts that interact with the Leetcode website.popup/
: Contains the popup UI for the extension.
manifest.json
: The extension manifest file.
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.
Leetcode Explained has been tested on the Google Chrome browser. It may work on other Chromium-based browsers, but compatibility is not guaranteed.