A professional Chrome Extension that automatically analyzes and displays the time and space complexity of your LeetCode solutions using AI-powered analysis.
BigOlogy seamlessly integrates with LeetCode's interface to provide instant algorithmic complexity analysis. When you submit a solution, the extension automatically evaluates your code and displays the time and space complexity in Big O notation - helping you understand and optimize your solutions.
- π€ AI-Powered Analysis - Leverages advanced AI to accurately determine algorithm complexity
- β‘ Instant Results - Get complexity analysis immediately after code submission
- π¨ Native UI - Seamlessly matches LeetCode's design system (light & dark mode)
- π Multi-Language - Supports all programming languages available on LeetCode
- π Privacy-First - No data collection, code analyzed only for complexity
- π± Responsive - Works perfectly on all screen sizes
-
Download the Extension
https://github.com/adithyapaib/BigOlogy -
Open Chrome Extensions
- Navigate to
chrome://extensions/in Google Chrome - Or: Menu β More Tools β Extensions
- Navigate to
-
Enable Developer Mode
- Toggle the "Developer mode" switch in the top-right corner
-
Load Extension
- Click "Load unpacked"
- Select the
BigOlogyfolder - Click "Select Folder"
-
Done! β
- The extension icon should appear in your toolbar
- Ready to use on LeetCode
-
Open LeetCode
- Visit https://leetcode.com
- Navigate to any coding problem
-
Write Your Solution
- Code your solution in any supported language
- Click the "Submit" button
-
View Analysis
- Once submission results appear, the complexity analysis card will display automatically
- See Time Complexity and Space Complexity in Big O notation
ββββββββββββββββββββββββββββββββββββ
β β‘ Complexity Analysis β
ββββββββββββββββββββββββββββββββββββ€
β Time Complexity: O(n) β
β Space Complexity: O(1) β
ββββββββββββββββββββββββββββββββββββ€
β Made with β€οΈ by Adithya β
ββββββββββββββββββββββββββββββββββββ
BigOlogy/
βββ manifest.json # Extension configuration
βββ content.js # Main script (monitors LeetCode)
βββ background.js # Service worker (API handler)
βββ styles.css # LeetCode-matched styling
βββ popup.html # Extension popup UI
βββ popup.js # Popup functionality
βββ icons/ # Extension icons
β βββ icon16.png
β βββ icon48.png
β βββ icon128.png
βββ README.md # Documentation (this file)
- Endpoint:
https://text.pollinations.ai/ - Method: GET
- Authentication: None required (free API)
- Rate Limits: Managed automatically
- β Google Chrome (v88+) - Tested
- β Microsoft Edge (Chromium-based)
- β Brave Browser
- β Any Chromium-based browser
activeTab- Access to the current LeetCode tabstorage- Store user preferencesleetcode.com- Interact with LeetCode pagestext.pollinations.ai- Make API requests for analysis
The extension uses LeetCode's native design system:
- Colors: Matches LeetCode's CSS variables
- Typography: Consistent with LeetCode fonts
- Spacing: Follows LeetCode's padding/margin patterns
- Dark Mode: Full support with automatic theme detection
- Accessibility: WCAG 2.1 compliant
- β Analyze code complexity using AI
- β Display results in your browser
- β Open-source and transparent
- β No data collection
- β No user tracking
- β No analytics
- β No code storage
- β No personal information access
Your code is only sent to the AI API for analysis and is not stored anywhere.
Solution: Check chrome://extensions/ for error messages and ensure Developer Mode is enabled.
Solution:
- Verify you're on a LeetCode problem page
- Ensure submission was successful
- Check browser console (F12) for errors
- Reload the page and try again
Solution:
- Check internet connection
- Verify the API endpoint is accessible
- Wait a moment and resubmit
Solution: AI analysis is generally accurate but may occasionally vary. Use as a guide and verify with manual analysis for critical applications.
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see below for details:
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software.
BigOlogy relies on a third-party AI endpoint (Pollinations) for complexity analysis. Occasionally, that service may return transient server errors (HTTP 5xx, e.g., 502 Bad Gateway). To help you when that happens:
- If you see "Analysis service temporarily unavailable (server 5xx)", wait a minute and try submitting again.
- Refresh the LeetCode page after updating or reloading the extension (F5).
- If issues persist, check the browser console (F12) for diagnostic logs and open an issue on GitHub with the logs.
- Consider running the analysis manually (local reasoning) until the service is restored.
These tips are implemented in the extension: the background worker retries transient 5xx failures with exponential backoff and the UI shows a helpful message for server-side errors.
- Pollinations AI - For providing the free AI API
- LeetCode - For the amazing platform
- Chrome Extensions Team - For comprehensive documentation
- Developer: Adithya
- Website: adithyapaib.com
- Issues: Report bugs via GitHub Issues
- Detailed complexity explanations
- Best/Average/Worst case analysis
- Optimization suggestions
- Historical complexity tracking
- Comparison with optimal solutions
- Export analysis reports
If you find this extension helpful, please consider giving it a star! β
Made with β€οΈ by Adithya
Happy Coding! May your complexities always be optimal! π
