A Chrome extension that generates comprehensive prompts for LLM feedback on your LeetCode solutions.
- Automatic Extraction: Extracts question details, constraints, and your solution from LeetCode
- Comprehensive Prompts: Generates detailed prompts covering time/space complexity, code quality, and optimization
- One-Click Copy: Copies the generated prompt directly to your clipboard
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the folder containing these files
- The extension icon should appear in your Chrome toolbar
- Navigate to any LeetCode problem page (e.g.,
https://leetcode.com/problems/two-sum/) - Write your solution in the code editor
- Click the LeetPrompt extension icon in the Chrome toolbar
- Click "Generate & Copy Prompt"
- The prompt will be copied to your clipboard and can be pasted into any LLM
Please analyze my solution and provide feedback on:
- Time Complexity
- Space Complexity
- Code Quality
- Algorithm Choice
- Edge Cases
- Optimization
- Alternative Approaches
For any changes in the prompt, can change it in content.js.
leetPrompt/
├── manifest.json # Extension configuration
├── content.js # Content script for LeetCode pages
├── popup.html # Extension popup interface
├── popup.js # Popup logic
├── icon16.png # 16x16 icon
├── icon32.png # 32x32 icon
The extension requires these permissions:
activeTab: To interact with the current LeetCode pageclipboardWrite: To copy the generated prompt- Host permissions for
leetcode.com/*
- Extension not working: Refresh the LeetCode page after installing
- No code found: Make sure your solution is visible in the code editor
- Clipboard error: Check browser permissions for clipboard access
To modify the extension:
- Make changes to the files
- Go to
chrome://extensions/ - Click the refresh icon on the extension
- Reload the LeetCode page