Interviewer Pushes Back on Your Solution? How to Respond Without Getting Defensive
You finish explaining your approach, feel good about it, and the interviewer leans in: "Hmm. Are you sure that handles everything?" Or worse: "I don't think that's going to work."
Your stomach drops. Was it wrong? Is this a hint? A test of confidence? Do you defend it or tear it up?
Pushback is one of the most stressful moments in a live coding round because it forces a decision with incomplete information. The good news is that you do not need to read the interviewer's mind. You need a short routine that works whether your solution is right, half right, or wrong.
This guide gives you that routine: pause, probe, decide, and narrate the change.
Why interviewers push back
Pushback does not mean the same thing every time. The common reasons:
- There is a real bug. They spotted an edge case, an off-by-one, or a complexity problem and want to see if you can find it with a nudge.
- They are testing conviction. Some interviewers challenge correct answers on purpose to see whether you can reason through your own work instead of folding.
- They want a different trade-off. Your solution is fine, but they are steering toward lower memory, a streaming version, or the follow-on they planned.
- They misread your approach. You said one thing, they heard another. This happens more often than candidates expect, especially on video calls.
You cannot tell which one it is from the tone alone. So do not guess. Investigate.
The two failure modes
Most candidates react to pushback in one of two ways, and both cost points.
Instant collapse. "Oh, you're right, let me start over." You throw away a working approach because someone sounded doubtful. If the original was correct, you just signaled that you do not trust your own reasoning, and you burned time rebuilding.
Digging in. "No, it definitely works." You defend without checking. If there was a real bug, you now look like someone who cannot take feedback, which is a bigger red flag than the bug itself.
The goal is the middle path: take the concern seriously and verify it on the spot.
Step 1: pause and acknowledge
Do not answer in the first second. Take a breath and acknowledge the concern without agreeing or disagreeing yet:
"Good question. Let me check that."
That one sentence buys you thinking time, keeps the tone collaborative, and avoids committing to a position before you have looked. It also stops the panic spiral, because you have a next action instead of a verdict.
Step 2: probe what they mean
If the pushback is vague, ask one clarifying question to narrow it down:
- "Is there a specific input you're thinking of?"
- "Are you more worried about correctness or about the complexity?"
- "Should I assume the input could be larger than we discussed?"
Interviewers who are hinting at a bug will often give you a direction. Interviewers who are testing conviction will usually say something like "just walk me through it." Either answer tells you what to do next.
Keep it to one question. A string of questions here can feel like you are fishing for the answer instead of reasoning about it.
Step 3: verify with a concrete example
Now check your work against something specific, out loud:
- Pick the most suspicious input: empty, single element, duplicates, all equal, the maximum size, or whatever they hinted at.
- Trace your logic step by step, saying the variable values as you go.
- Compare the result with what the correct output should be.
"Let's try an empty array. We skip the loop, return zero, which matches the expected result. Now an array with one negative number: we initialize max to zero... ah, that's the issue. We'd return zero instead of the negative value."
A dry run is the fastest honest way to resolve doubt. It also gives the interviewer a lot to write down: methodical checking is exactly the behavior they want to see on the job.
Step 4: decide and say it clearly
After the check, you land in one of three places. Say which one out loud.
You found a bug. Own it plainly: "You're right, initializing to zero breaks all-negative input. I'll initialize to the first element instead." Then fix the smallest thing that resolves it. Do not rewrite the whole function out of embarrassment.
Your solution holds. Explain why, calmly: "I traced the empty case and the duplicates case, and both return the right result because the window only shrinks when the count exceeds k. So I think it's correct, but happy to try another input if you have one in mind." That last sentence matters. It shows confidence without shutting the door.
It is a trade-off, not a bug. Name the trade-off: "This is correct, but it uses O(n) extra memory. If memory matters, I could switch to two pointers and get O(1) at the cost of sorting first. Want me to go that way?" Let them choose the direction.
Step 5: narrate the change if you pivot
If the pushback leads you to change the approach, do not go silent while you rework it. Keep the interviewer with you:
- What was wrong or suboptimal in one sentence.
- What you are changing.
- What stays the same.
"The counting logic stays. I'm only changing how we initialize and how we handle the window boundary."
This keeps the round from feeling like a reset. You are improving a solution, not starting from scratch.
What to say when you genuinely don't know
Sometimes you trace an example and still are not sure. That is fine. Be honest about where you are:
"I've checked these two cases and they look right, but I'm not fully confident about inputs with duplicates. Let me trace one quickly before I move on."
Uncertainty, stated clearly with a plan to resolve it, reads as maturity. Fake certainty reads as risk.
How to practice handling pushback
Normal problem practice never challenges you. The judge just says pass or fail. To build this skill:
- Ask a friend to push back at random. Tell them to say "are you sure?" a few times per mock, sometimes when you are right and sometimes when you are wrong. Do not let them tell you which.
- Challenge your own solutions. After you finish a practice problem, ask yourself "what input breaks this?" and trace it before running tests.
- Record yourself. Listen for whether you collapse, dig in, or verify. Most people are surprised how fast they fold.
- Use a script until it is automatic. "Good question, let me check. Is there a specific input you have in mind? Let me trace it."
If you want a Chrome side panel beside your editor while you run timed mocks and rehearse routines like this one, Luna Interview is built for that kind of practice at https://lunainterview.xyz/. Use it to build calm habits under pressure, not as a substitute for knowing the material or for anything that breaks interview rules.
Is interviewer pushback always a hint that I'm wrong?
No. Interviewers sometimes challenge correct solutions to see how you reason under doubt. Verify with a concrete example before deciding either way.
Should I defend my solution if I'm confident it's right?
Yes, but defend it with evidence, not insistence. Trace an example out loud, explain why it works, and invite them to suggest another input.
What if I find a bug after I already insisted it was correct?
Just own it: "I was wrong earlier, this case breaks it. Here's the fix." Changing your mind based on evidence is a positive signal. Interviewers remember how you recovered more than the original mistake.
Pushback checklist
- [ ] Pause and acknowledge before answering
- [ ] Ask one question to narrow the concern
- [ ] Trace a concrete, suspicious input out loud
- [ ] Say clearly whether it's a bug, correct, or a trade-off
- [ ] Fix the smallest thing, and narrate what changes and what stays
Pushback is not a verdict. It is an invitation to show how you check your own work. Pause, probe, verify, and decide out loud, and "are you sure?" becomes one of the best moments in the round.
— Luna Interview
Rehearse with an AI interview copilot, then browse commonly reported interview questions.