Code Clue is a powerful Chrome extension designed to enhance your problem-solving experience on LeetCode. With step-by-step hints, algorithm insights, and time complexity analysis, this extension simplifies even the toughest coding challenges.
- Step-by-Step Hints: Get detailed hints that guide you progressively from understanding the problem to solving it efficiently.
- Algorithm Insights: Learn about the best algorithms or data structures to solve each problem.
- Time Complexity Analysis: Understand the optimal time complexity of the solution.
- Automatic Detection: The extension detects the active problem on LeetCode and fetches relevant hints automatically.
- Customizable API Integration: Use your OpenAI or Gemini API keys to fetch personalized hints and solutions.
- On first launch, the extension will ask you to enter your OpenAI API Key and/or Gemini API Key.
- Enter your keys in the provided input fields and click Save API Keys.
- Optional: You can skip entering the keys, but the extension will use the default admin key with limited functionality.
- Open a problem on LeetCode.
- The extension will automatically detect the problem title and fetch:
- Up to 5 step-by-step hints.
- Algorithm details.
- Time complexity analysis.
- View the fetched data directly in the extension popup.
Below is a video demonstration followed by screenshots:
- Go to the Chrome Web Store.
- Search for CodeClue. (Soon to be available on Chrome Web Store)
- Click on Add to Chrome.
- Confirm by clicking Add Extension.
- Open a LeetCode problem, and the extension will be ready to use!
If you want to install the extension manually from the GitHub repository:
-
Download the Repository:
- Clone the repository:
git clone https://github.com/username/leetcode-hint-helper.git
- Or download it as a ZIP file and extract it.
- Clone the repository:
-
Load the Extension in Chrome:
- Open Chrome and navigate to
chrome://extensions/. - Enable Developer mode (toggle in the top-right corner).
- Click Load unpacked and select the folder where you extracted the repository.
- Open Chrome and navigate to
-
Set Up Your API Keys:
- On the first launch, enter your OpenAI API Key and/or Gemini API Key.
-
Use the Extension:
- Open a LeetCode problem, and the extension will fetch hints automatically.
The extension requires the following permissions to function effectively:
- Storage: To store API keys and fetched hints for reuse during your session.
- Scripting: To inject scripts into LeetCode pages and extract the problem title.
- ActiveTab: To interact with the currently open LeetCode problem page.
- Host Permission: Access to
https://leetcode.com/problems/*to detect the problem you’re working on.
We welcome contributions! If you'd like to report an issue or contribute to the project:
- Fork the repository.
- Make your changes and create a pull request.
- Ensure your changes comply with the Chrome Web Store policies.



