This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend
What I Built
AI Mate is an AI-powered study buddy for learning Data Structures and Algorithms (DSA).
Many students struggle with DSA, not because the topics are impossible, but because nobody explains why a solution works. AI Mate fixes that:
- Brute force to optimal: Paste your worst-case solution and AI Mate walks you toward the optimal one, step by step, instead of just dumping the final code.
- Real-world applications: For every topic (Arrays, Strings, Linked Lists, Stacks, Queues, and more), it explains where that data structure is used in real software.
- Level-based learning: You pick your DSA level when you sign up (beginner, intermediate, advanced), and the explanations match it.
- Built-in quizzes: After each explanation, AI Mate gives you short quizzes so you can check whether the concept actually stuck.
I built this for [my friend / classmates / juniors, fill in who] who kept copy-pasting ChatGPT answers and still couldn't explain their own code in interviews.
Demo
🎥 Watch the demo video
Typical flow:
- A student opens the website and logs in.
- They select their DSA level.
- They chat with DSA Mate: ask about a topic, paste a brute-force solution, or request a quiz.
- AI Mate explains, optimizes, and quizzes them.
Code
🔗 GitHub Repository
How I Built It
Architecture (high level):
Student → Frontend (login + chat UI)
↓
Backend (request handler)
↓
Backboard GPT API
↓
Response → Frontend
- Frontend: The login screen, level selection, and chat interface. Student details (name, level) are stored in the browser's localStorage, so there's no heavy database setup for a weekend build.
- Backend: A dedicated backend folder receives chat requests, attaches a teaching-style prompt, calls the Backboard GPT API, and returns the response to the frontend. This also keeps the API key off the client.
- Prompt design: The system prompt tells the AI to behave like a teacher: explain the intuition first, show the brute-force approach, identify the bottleneck, then guide toward the optimal solution, and finally offer a quiz.
- Token limits: To control API usage, each student session has a token limit. This is a known limitation, and I'd like to improve it.
Challenges I faced:
- Getting the AI to teach rather than just answer took a lot of prompt iteration.
- Balancing response quality against token limits.
- [Add one real challenge you hit.]
What I'd add next:
- Persistent accounts with a real database
- Progress tracking and weak-topic detection
- Code execution to test optimized solutions
- Support for Trees, Graphs, and Dynamic Programming
Why Does Open Innovation Matter?
Most students go straight to a chatbot, copy the solution, and move on. They get answers but not understanding.
Open innovation lets small builders like me take powerful public AI APIs and shape them for a specific, real problem. AI Mate doesn't replace the learning process; it works like a good teacher. It tells the whole story behind the code, shows why the brute force is slow, and quizzes you to confirm you understood. Anyone can fork it, change the prompts, and adapt it for their own classmates or subject.
My Agent Session
[Add your DevRelay session link or agent_session embed here, or delete this section if you didn't use one.]
Prize Categories
Best Use of Backboard
Build with R-CLI, Backboard's open-source terminal coding agent, compare open-weight models through a single Backboard API key, or give an open-source project's assistant memory and RAG.
Top comments (0)