-
-
Mode Selection Interface – Users choose an explanation mode (Beginner, Interview, or Contest) to receive tailored problem explanations .
-
The complete C++ code solution
-
Structured AI Explanation Output – The system generates clear, step-by-step explanations including intuition, algorithm, and complexity .
-
Complete solution output showing edge cases, time and space complexity, and optimized C++ code in a clear, structured format.
Inspiration
Many competitive programming learners can find solutions but struggle to understand the underlying logic. We wanted to bridge this gap by focusing on learning through explanation, not just answers.
What it does
An AI-powered CLI tool that generates structured competitive programming explanations in Beginner, Interview, and Contest modes, adapting depth and clarity to the user’s level.
How we built it
Built using Python and the Gemini API, with a command-line interface that accepts multi-line problems and outputs consistently formatted explanations and C++ solutions.
Challenges we ran into
Maintaining strict explanation structure Adapting depth for different skill levels Ensuring clean and compliable C++ outputs
Accomplishments that we're proud of
Fully functional AI-driven CLI tool Mode-based adaptive explanations Clean, structured outputs suitable for learning and interviews
What we learned
Prompt structure greatly impacts AI reliability Even CLI tools need strong UX design Clarity matters more than complexity
What's next for Competitive Programming Explanation Engine
Codeforces integration User progress tracking Web interface and export options
Log in or sign up for Devpost to join the conversation.