25-cxsj-final/README.md

1.0 KiB

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