An AI-Powered Interactive Learning Platform for Mastering Data Structures & Algorithms
Features โข Demo โข Installation โข Tech Stack โข Contributing
AlgoMaster AI is a next-generation educational platform that combines interactive coding, AI-powered tutoring, and comprehensive progress tracking to help developers master Data Structures and Algorithms. Whether you're preparing for FAANG interviews or strengthening your fundamentals, AlgoMaster AI provides an engaging, hands-on learning experience.
- ๐ค AI-Powered Assistant - Get contextual hints and guidance using Gemini 2.5 Flash
- ๐ป Multi-Language Support - Code in JavaScript, TypeScript, Python, Java, and C++
- ๐ In-Browser Execution - Run code instantly without any backend setup
- ๐ Progress Analytics - Track your learning journey with detailed metrics
- ๐ Interview Prep - FAANG-focused problem sets and mock scenarios
- ๐ฅ Community Features - Share solutions and learn from peers
- Monaco Editor integration with syntax highlighting
- Auto-indentation, bracket matching, and code completion
- Per-language code persistence using localStorage
- Support for 5 programming languages
- JavaScript/TypeScript: Sandboxed iframe execution
- Python: Pyodide-based WASM interpreter
- Real-time output console with error handling
- No server required - runs entirely in the browser
- Powered by Google Gemini 2.5 Flash
- Context-aware hints based on your current problem
- Socratic teaching method - guides without spoiling
- Complexity analysis and optimization suggestions
- 10+ algorithm topics (Arrays, Trees, Graphs, DP, etc.)
- 100+ curated problems with difficulty ratings
- Detailed explanations and example test cases
- Language-specific starter templates
- Problems solved tracker
- Current streak and activity heatmap
- Skill distribution charts (using Recharts)
- Topic-wise progress breakdown
- Share solutions and coding approaches
- Like, comment, and follow other learners
- Build your coding reputation
- Company-specific problem banks
- Timed mock interview sessions
- Interview constraint simulations
- Node.js (v18 or higher)
- npm or yarn
- A Gemini API Key from Google AI Studio
-
Clone the repository
git clone https://github.com/yourusername/algomaster-ai.git cd algomaster-ai -
Install dependencies
npm install
-
Set up environment variables
Create a
.env.localfile in the root directory:VITE_GEMINI_API_KEY=your_gemini_api_key_here
-
Run the development server
npm run dev
-
Open your browser
Navigate to
http://localhost:5173
- React 19.2 - UI framework
- TypeScript 5.8 - Type-safe JavaScript
- Vite 6.2 - Lightning-fast build tool
- Monaco Editor - VS Code-powered code editor
- Recharts - Data visualization for analytics
- Google Gemini 2.5 Flash - AI assistant backend
- Pyodide - Python WASM runtime
- Sandboxed iframes - JavaScript execution
- localStorage - Client-side data persistence (no backend required)
algomaster-ai/
โโโ components/ # React components
โ โโโ About.tsx
โ โโโ Community.tsx
โ โโโ Curriculum.tsx
โ โโโ FAANGPrep.tsx
โ โโโ ProblemSolver.tsx
โ โโโ Profile.tsx
โโโ services/
โ โโโ geminiService.ts # AI service integration
โโโ App.tsx # Main application component
โโโ types.ts # TypeScript type definitions
โโโ constants.ts # App constants and data
โโโ index.tsx # Application entry point
โโโ vite.config.ts # Vite configuration
โโโ package.json # Dependencies and scripts
- Browse Curriculum - Select a topic (Arrays, Trees, etc.)
- Choose a Problem - Pick based on difficulty (Easy/Medium/Hard)
- Write Code - Use the multi-language editor
- Run & Test - Execute your code in the browser
- Get AI Help - Ask the assistant for hints if stuck
- Track Progress - See your stats update in real-time
- Click the chat icon while solving a problem
- Ask questions like:
- "What approach should I use for this problem?"
- "Can you explain the optimal solution?"
- "How can I optimize my time complexity?"
- The AI provides hints without giving away the full solution
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production buildThis app can be deployed to any static hosting platform:
npm install -g vercel
vercelnpm run build
# Deploy the `dist` foldernpm run build
# Deploy the `dist` folder to gh-pages branchImportant: Don't forget to set your VITE_GEMINI_API_KEY in the hosting platform's environment variables.
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini - AI assistant capabilities
- Monaco Editor - Code editor
- Pyodide - Python in the browser
- Recharts - Charting library
For questions or feedback, please open an issue or reach out to the maintainers.
Made with โค๏ธ for developers preparing for their dream jobs
โญ Star this repo if you find it helpful!