How silvermete0r/leetcode-solution-complexity-analyzer works
Main Components
A. Frontend Layer:
• Static assets (/app/static)
• Templates (/app/templates)
• Four main pages: index, profile, stars, and 404
B. Backend Layer:
• Flask Application (Python-based)
• Main routes handler (/app/routes.py)
• Complexity analyzer module (/app/complexity.py)
• Utilities module (/app/utils/leetcode.py)
C. External Services:
• Gemini Pro API (for complexity analysis)
• LeetCode API (for fetching solution data)
• [Client Tier] → [Application Tier] → [External Services Tier]
Flow Representation
• User requests → Flask Routes
• Routes → Complexity Analyzer
• Complexity Analyzer → Gemini Pro API
• LeetCode Utilities → LeetCode API
• Server responses → Client
Additional Elements
Supporting components:
• Configuration files (.env)
• Docker container boundary
• Vercel deployment environment
Specific Implementation Details
• A container boundary showing Docker encapsulation
• Vercel deployment wrapper
Technical Stack Indicators
• Python/Flask
• HTML/CSS
• Gemini Pro AI
• Docker
• Vercel
This system design should effectively communicate how the application processes LeetCode solutions, analyzes their complexity using AI, and serves the results to the Kazakhstan LeetCode community.