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

Built With

  • c++
  • command-line-interface-(cli)
  • gemini-api
  • prompt-engineering
  • python
Share this project:

Updates