Go to file
hissin 73de6b86f5 chore: Add /docs to .gitignore 2025-11-21 15:05:25 +08:00
backend feat: Implement Min Path Sum, Flower Planting, and Advantage Shuffle problems with corresponding backend and frontend components. 2025-11-20 14:50:45 +08:00
docs feat: add initial frontend and backend dependencies 2025-11-20 14:28:41 +08:00
frontend feat: Configure Vite proxy for API requests and update API URL to use a relative path. 2025-11-20 15:12:57 +08:00
.gitignore chore: Add /docs to .gitignore 2025-11-21 15:05:25 +08:00
Dockerfile feat: Consolidate Nginx and Python backend into a single Docker image, managed by a new entrypoint script, and update Nginx proxy configuration. 2025-11-20 14:57:44 +08:00
README.md feat: add initial frontend and backend dependencies 2025-11-20 14:28:41 +08:00
docker-entrypoint.sh feat: Consolidate Nginx and Python backend into a single Docker image, managed by a new entrypoint script, and update Nginx proxy configuration. 2025-11-20 14:57:44 +08:00
nginx.conf feat: Consolidate Nginx and Python backend into a single Docker image, managed by a new entrypoint script, and update Nginx proxy configuration. 2025-11-20 14:57:44 +08:00

README.md

Algorithm Test Case Generation and Verification Platform

Project Structure

  • backend/: FastAPI Python Backend
  • frontend/: React Vite Frontend

Prerequisites

  • Python 3.8+
  • Node.js 16+

Setup & Run

docker-compose up --build

Then access:

Manual Setup

1. Backend

cd backend
# Optional: Create virtual env
# python -m venv venv
# source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload

Backend will run at http://localhost:8000

2. Frontend

cd frontend
npm install
npm run dev

Frontend will run at http://localhost:5173

Features Implemented

  1. Maximum Subarray Sum:
    • Brute Force (O(N^2))
    • Divide & Conquer (O(N \log N))
    • Kadane's Algorithm (O(N))
    • Automatic Random Case Generation
    • Performance Benchmarking & Visualization