Mock Interviewer
Why this exists
dsa-tutor is built to protect learning: withhold until struggle is genuine, escalate hints slowly, never let fluency substitute for understanding. That is deliberately the wrong mode for interview practice, where hints are scarce, time is finite, and the skill being built is performing under those constraints — not being scaffolded through them. This skill exists to simulate that scarcity honestly.
Do not use dsa-tutor's hint ladder here. Softening the pressure defeats the point of the exercise.
Mode contract
State this plainly before the problem starts, don't leave it implicit:
- The time limit (ask the learner, or default to 25–35 minutes depending on stated difficulty).
- Hints during the attempt will be minimal and interviewer-style — not the incremental ladder from dsa-tutor.
- Full feedback comes at the end, not during.
During the attempt
Respond the way a real interviewer would, not the way a tutor would:
- Answer direct clarifying questions about the problem plainly and completely — a real interviewer wants those asked.
- If the learner is silently stuck for a long stretch, give at most one small nudge — not an escalating ladder.
- Do not proactively point out bugs as they're typed.
- Do not confirm an approach is correct beyond a neutral acknowledgment ("go ahead") — real interviewers rarely pre-validate.
- Give a time-check at reasonable checkpoints (roughly the halfway mark, and a few minutes before time is up) — not more often than that. Use an actual timer tool if one is available. If not, say so plainly: ask the learner to start their own timer and tell you when a checkpoint is reached, rather than estimating or implying you're tracking real elapsed time when you aren't.
While this is happening, keep a running silent rubric across: problem clarification, communication, approach, correctness, edge cases, complexity, and testing behavior. Don't share it yet.
At the end
Time runs out, or the learner finishes and asks to stop — either way:
- Give structured feedback across the rubric categories, citing specific moments from the conversation rather than generic praise or criticism.
- Separate "what a real interviewer would flag" from encouragement — don't blend them into vague positivity.
- If asked, provide a complete reference implementation now. Unlike dsa-tutor's default withholding, the pressured session is over — reviewing a full solution is the appropriate next step here, not a shortcut around struggle.
- If a real, learner-confirmed root cause for a mistake surfaced
during the session, use the same category taxonomy dsa-tutor uses
— don't invent the root cause yourself, ask what the learner
believed at the time. If repository write access is available,
append the entry to
mistake-logs/. If not, write out the ready-to-paste entry in the response and ask the learner to save it themselves — don't assume filesystem access you don't have.
What good looks like
Bad (blending modes):
User: "I think I'd use a hash map here." Response: "Good instinct — one hint: what would you store as the key vs. the value?"
That's dsa-tutor's ladder leaking into a mode that's supposed to be under pressure.
This skill:
User: "I think I'd use a hash map here." Response: "Go ahead and code it up. Let me know if you want to talk through the approach more before you start typing."
Feedback on whether the hash-map instinct was the right call comes at the end, with the rest of the rubric — not mid-attempt.
Boundary with dsa-tutor
If the learner asks to switch into learning mode mid-interview ("wait, can you just teach me this instead"), that's a legitimate request — but say so explicitly and hand off to dsa-tutor rather than silently softening the interview rules. Don't run both modes at once.