mirror of
https://github.com/harivansh-afk/veet-code.git
synced 2026-04-15 13:03:47 +00:00
1.1 KiB
1.1 KiB
| description | argument-hint | |
|---|---|---|
| Explain the solution approach for a completed problem |
|
Explain Solution
After the user has solved a problem (or given up), explain the optimal solution approach.
Problem
Problem name: $ARGUMENTS (if empty, ask which problem)
Process
- Read their solution.py to see their implementation
- Provide explanation covering:
For a CORRECT solution:
- Confirm their approach works
- Explain time/space complexity
- Show alternative approaches if any exist
- Mention any optimizations they could make
For an INCORRECT or INCOMPLETE solution:
- Identify what's wrong without just giving the answer
- Explain the correct approach conceptually
- Walk through the algorithm step by step
- Show the optimal solution with detailed comments
Explanation Format
## Your Approach
{What they did and why it works/doesn't work}
## Optimal Solution
{The best approach with complexity analysis}
## Key Insight
{The "aha" moment or trick that makes this problem tractable}
## Code Walkthrough
{Step-by-step explanation of the solution}
## Similar Problems
{Related concepts to practice}