Code2DSA is a full-stack, AI-powered coding platform designed to help developers practice Data Structures & Algorithms efficiently. It provides real-time code execution, multi-test case submissions, performance tracking, and an AI-based code reviewer that analyzes solutions and offers improvement suggestions.
- 🧠 DSA Problem Solving – Practice curated coding problems
▶️ Code Execution – Run code instantly against custom inputs- ✅ Multi-Test Case Submissions – Submit solutions against multiple test cases
- 🌍 Multiple Language Support - JavaScript, Python, Java, C++ and others
- 🎯 Filtering - Difficulty & Topic-Based
- 🤖 AI Code Reviewer – Analyze solutions, suggest optimizations, and provide feedback
- 📐 AI-Based Complexity Analysis - Time & Space complexity
- 🔐 Authentication – Secure login using NextAuth
- 👤 User Profiles – Track solved problems, submissions, and performance stats
- 📊 Submission History & Analytics – Monitor progress over time
Frontend & Backend
- Next.js (Full Stack)
- TypeScript
- Tailwind CSS
Authentication
- NextAuth
AI Integration
- OpenAI Agent SDK
Database
- MongoDB
🔗 Live App: https://code2dsa.vercel.app
- Clone the repository
git clone https://github.com/mrehanamjad/code2dsa.git
cd code2dsa- Install dependencies
npm install- Environment Variables
Create a .env.local file and add:
MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_SECRET=your_secret_key
NEXT_PUBLIC_APP_URL=http://localhost:3000
GEMINI_API_KEY=your_gemini_api_key- Run the development server
npm run devOpen http://localhost:3000 in your browser.
Muhammad Rehan Amjad
- 🌐 Portfolio: https://www.rehanamjad.vercel.app
- 🐙 GitHub: https://github.com/mrehanamjad
- 💼 LinkedIn: https://linkedin.com/in/mrehanamjad
If you find this project helpful, consider giving it a ⭐ on GitHub — it really helps!
If you want, I can also:
- make a shorter README (startup-style)
- add architecture diagrams
- write a contributing.md
- optimize it for open-source visibility
Just tell me 👌