A modern Chrome extension that analyzes the time and space complexity of your code directly on LeetCode. Supports multiple languages, features a beautiful UI, and leverages Google Gemini AI for advanced analysis.
- Analyze Time & Space Complexity for code in Python, JavaScript, Java, C++, and more
- AI-powered (Google Gemini) and static analysis modes
- Auto-fetch code from LeetCode problem pages
- Modern, glassmorphic UI with dark mode
- Secure Gemini API key (never hardcoded)
- Personalized footer and branding
- Clone or Download this repository:
git clone https://github.com/yourusername/leetcode-complexity-analyzer.git cd leetcode-complexity-analyzer - Open Chrome and go to
chrome://extensions/ - Enable Developer Mode (top right)
- Click "Load unpacked" and select this project folder
- The extension icon should now appear in your Chrome toolbar!
- Get your Gemini API key from Google AI Studio
- Open the extension popup
- Go to Settings (gear icon or menu)
- Paste your Gemini API key and save
- Your key is stored securely in your browser and never exposed in the code or repo
Never share or commit your API key!
- Navigate to a LeetCode problem page
- Click the extension icon to open the popup
- Paste or auto-fetch your code
- Select the language (or let it auto-detect)
- Click Analyze Complexity
- View the time and space complexity results (AI or static)
Pull requests and suggestions are welcome! For major changes, please open an issue first to discuss what you would like to change.
