Import community-contributed problems from the repo.
problems/
two-sum/
description.md # Title, description, constraints, hints, complexity
testcases.json # Array of { input, expectedOutput, isHidden }
starter-code/
javascript.js
python.py
typescript.ts
java.java
cpp.cpp
c.c
rust.rs
solution/
editorial.md # Solution explanation
solution.py # Reference solution
Imported from
server/TODO.md.Kanban
📋 TODO - Problem Contribution Pipeline (LOW PRIORITY)
Import community-contributed problems from the repo.
Task Breakdown:
1. Problem Format in Repo
2. Import Script
scripts/import-problems.ts— CLI script to import fromproblems/directorydescription.mdfrontmatter (title, difficulty, tags, constraints, complexity)testcases.jsonstarter-code/directory3. Validation
4. Admin Review Integration
GET /api/problems/pending— List problems in DRAFT status (admin only)POST /api/problems/:id/approve— Approve problem (move to ACTIVE)POST /api/problems/:id/reject— Reject problem with reasonstatusfield to Problem model (DRAFT, ACTIVE, REJECTED)5. Tests