Skip to content

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.

License

Notifications You must be signed in to change notification settings

abhinavtiwari77/LeetCodeComplexityAnalyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LeetCode Complexity Analyzer

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.


✨ Features

  • 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

πŸ“Έ Screenshots

image

πŸš€ Installation

  1. Clone or Download this repository:
    git clone https://github.com/yourusername/leetcode-complexity-analyzer.git
    cd leetcode-complexity-analyzer
  2. Open Chrome and go to chrome://extensions/
  3. Enable Developer Mode (top right)
  4. Click "Load unpacked" and select this project folder
  5. The extension icon should now appear in your Chrome toolbar!

πŸ”‘ Setting Up Your Gemini API Key (Secure)

  1. Get your Gemini API key from Google AI Studio
  2. Open the extension popup
  3. Go to Settings (gear icon or menu)
  4. 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!


πŸ› οΈ Usage

  1. Navigate to a LeetCode problem page
  2. Click the extension icon to open the popup
  3. Paste or auto-fetch your code
  4. Select the language (or let it auto-detect)
  5. Click Analyze Complexity
  6. View the time and space complexity results (AI or static)

🀝 Contributing

Pull requests and suggestions are welcome! For major changes, please open an issue first to discuss what you would like to change.


About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published