Ever stared at a LeetCode problem for 30 minutes wondering if you're close or completely lost?
Leehint is a Chrome Extension that gives you progressive AI-generated hints while solving LeetCode problems. Instead of instantly revealing the answer, it nudges you in the right direction step-by-step, helping you actually learn and improve your problem-solving skills.
Get a subtle hint about the approach without revealing the solution.
Receive a more detailed explanation that guides your thinking process.
Still stuck? Generate complete solutions in:
- Python
- Java
- C++
Copy generated solutions directly from the extension.
Your hints stay saved even if you close the popup and reopen it later.
Starting a new problem? Reset the extension state with a single click.
-
Open any LeetCode problem.
-
Click the Leehint extension icon.
-
The extension automatically reads:
- Problem statement
- Your current code
-
Sends the context to Gemini.
-
Generates:
- Level 1 Hint
- Level 2 Hint
- Full Solution (if requested)
The goal is to help you think through the problem instead of simply copying answers.
Leehint/
β
βββ manifest.json # Chrome extension configuration
βββ popup.html # Extension UI
βββ popup.js # Main extension logic
βββ content.js # Extracts LeetCode problem + code
βββ style.css # UI styling
βββ icon.png # Extension icon
βββ config.js # Gemini API Key (not included)
git clone https://github.com/yourusername/leehint.gitCreate a file named:
config.jsAdd:
const GEMINI_API_KEY = "YOUR_API_KEY_HERE";- Open Chrome
- Go to:
chrome://extensions
- Enable Developer Mode
- Click Load Unpacked
- Select the project folder
Done π
- JavaScript
- Chrome Extension API (Manifest V3)
- Google Gemini API
- HTML
- CSS
- Marked.js
While solving LeetCode, I often found myself stuck between two bad choices:
- Spend hours making no progress.
- Open the solution and spoil the entire problem.
I wanted something in between.
Leehint acts like a coding mentor that gives hints progressively, allowing you to keep ownership of the solution while still getting help when needed.
- Support for more programming languages
- Better hint personalization
- Dark/Light theme support
- Hint history
- Difficulty-based guidance
- Support for other coding platforms
If you found this project useful, consider giving it a star.
It motivates me to build more developer tools and open-source projects.
Happy Coding! π