You know the material. You've solved problems like this alone. Then an interviewer is watching, you're expected to talk while you code, and your mind goes empty.
Going blank can happen even on a problem you know how to solve, and it says little about what you know. In a randomized study of 48 computer science students recruited at one university, candidates who solved a whiteboard problem with a proctor present and a required think-aloud failed the task more often than those who solved it alone, and several described trouble getting started. In experiments on memory for past events, people were worse on average at recalling previously studied material when stress occurred just before or during recall.
You can take the next step while you still feel nervous. Two things are within reach before your next interview. First, a short routine for the moment your mind goes blank (ask for a moment, write the problem and an example down, say in a sentence where you are, then try the simplest approach or use a hint). Second, practice that copies the round's conditions (timed, out loud, with someone watching). That's a practical way to rehearse, and it may not stop the blank. Training under pressure helped performance on pressured tests in sport and policing, and carrying it over to coding interviews is my suggestion.
General interview nerves in the days before a loop or on the morning of a round are a wider subject. This article is about the freeze itself, when your mind goes completely blank on a technical problem.
Why your mind goes blank when someone is watching
Having to solve and explain a problem at the same time can make it harder to get started, and stress can make something you remember harder to bring to mind. The working-memory explanation is a possibility from a lab math study, not a proven fact for coding interviews.
In the study by Behroozi and colleagues at NC State and Microsoft, researchers tested 48 computer science students recruited at one university on a whiteboard problem. In the public setting, with a proctor present and a required think-aloud, 26 students participated. In the private setting, 22 students worked alone. The authors found: "In the public setting 61.5% of the participants failed the task compared with 36.3% in the private setting." Failing meant not passing all three test cases given in advance within a 30-minute limit. Failing the task isn't the same thing as going blank, but several participants described acute trouble getting started. The authors noted that "The beginning was especially troublesome," and participant P36 described the sensation directly: "as soon as I see the problem, I become blank." The authors offered three possible explanations for the higher cognitive load in the public setting: the extra demands of talking aloud, the stress of being watched, or changes in problem-solving strategy. Being watched and the required think-aloud changed together in the trial, so it can't say which one mattered.
A later 2022 comparison by Behroozi, Parnin, and Brown set 24 recordings of watched students from the earlier whiteboard study against 24 students who recorded their think-aloud unwatched. Raters judged the unwatched group's think-aloud effective more often than the watched group's. Citing earlier work, the authors noted that "Unfortunately, supervised think-aloud often has adverse and negative effects on problem-solving and communication ability." The unwatched group also used a different platform, problem, and time limit.
One explanation for why pressure disrupts thinking comes from a 2005 study by Beilock and Carr. In a lab math experiment, they found that among participants with high working-memory capacity, pressure impaired performance only on the math problems that placed the highest demands on working memory. They suggested that "performance pressure harms individuals most qualified to succeed by consuming the working memory capacity that they rely on for their superior performance." It may fit what P36 described, a mind that goes blank as soon as the problem appears.
In a 2017 meta-analysis of experimental studies of acute stress and episodic memory, Shields and colleagues found that, on average, "When stress occurred just prior to or during retrieval, memory was impaired". Episodic memory is the ability to remember past events. Some of the experiments tested recall of previously presented words, not programming knowledge, so it's only a possibility that stress makes something you know harder to recall in an interview.
The effect of an audience also depends on the task. In a 1983 meta-analysis of 241 studies, Bond and Titus examined social facilitation across a range of tasks. The review doesn't establish an effect in job interviews. They found that having others present produced small effects overall, though "the presence of others impairs complex performance accuracy." Deciding that "complex" applies to whatever problem a particular candidate finds difficult is my own inference, not a finding from the review.
What the interviewer is judging while you're stuck
You can ask for a moment, and once you have one, show the interviewer what you can work out next.
Google's own guidance allows a pause, though these undated pages describe intended practice rather than observed scoring. On Google's careers advice page, which covers all roles, the company suggests "telling the interviewer you want a few moments to collect your thoughts." In Meta's Software Engineer Full Loop Interview Guide, the company explains that coding interviews evaluate communication alongside code: "they’ll want to hear your thought process throughout, so be sure to provide a narrative as you go through the code." The same guide reminds candidates that "it’s ok if you don’t know!"
Thinking aloud also makes it easier for the interviewer to offer a hint. On Amazon's prep page for SDE II interviews, the company says of thinking aloud, "It will help your interviewer give you feedback and hints if you need them."
In The Holloway Guide to Technical Recruiting and Hiring, by Osman and contributors, interviewers are told that "if a candidate is clearly stuck for more than a few minutes, it’s usually time to get them unstuck." That timeframe is an illustration rather than a measured rule. In a sample rubric from the Holloway guide, the authors write, "A poor performance: The candidate cannot complete the problem, even with significant hinting." Teams design rubrics differently, so this standard isn't universal across all companies.
In a 2017 study of 70 mock-interview evaluations with student volunteers at one US university, Ford and colleagues observed that "Surprisingly, technical interviewers place an emphasis on interpersonal skills and effective communication in the interview." One interviewer noted: "Small hints are not a problem but if an interviewer has to give larger hints, they will not be able to assess your abilities."
At the same time, talking isn't a substitute for making progress on the problem. In a 2022 post for interviewing.io, a commercial platform that sells mock technical interviews, Dima Korolev analyzed the platform's ratings. The post describes an association from internal platform data, and the method can't be reproduced from the article. Korolev found that in coding interviews on interviewing.io, coding and problem-solving ratings were more predictive of a recommendation to advance the candidate to the next round than communication ratings were: "Talk is indeed cheap, and indeed, coding and problem solving is what you need to show in a coding interview."
The goal of asking for a moment or talking out loud is to buy yourself the room to write working code.
What to do the moment your mind goes blank
When your mind empties, pause on purpose, put the problem on the page, say in a sentence where you are, then try the simplest approach on your example, using a hint if one comes. On the MentorCruise blog, mentor Oshin Mundada outlines the full structure of a technical round, including how to handle getting stuck. When the freeze happens, follow this sequence:
- Say you need a moment. As noted on Google's careers page, you can say you want a few moments to collect your thoughts. In career advice published by Tufts University, Amory Wakefield suggests that "You can acknowledge that you feel nervous, and ask for a few minutes to think before answering." Wakefield wrote that advice for before answering at the start of a question. Adapting it mid-problem when your mind goes blank is my own suggestion. For example, you could say "I'm going to take 60 seconds to look at the constraints."
- Write the problem and a small example down. Don't stare at an empty editor. Write the inputs, outputs, and edge cases into code comments, then restate the goal or ask a clarifying question. Google suggests writing the details out if that helps you clarify the problem, and Meta lists problem clarification as a key communication behavior. Working through a concrete input gives your eyes something physical to track.
- Say in one sentence what you know and what you'll try. In the NC State whiteboard study, one participant described the difficulty of having to "think and talk and do code at the same time." A single sentence is enough, for example "I know the brute force approach is quadratic, so I'll write that down first." This short update is my practical suggestion, not a tested method. Once you have a next move, go back to explaining your choices as you work, which Meta and Amazon both ask for.
- Try the simplest approach you can describe on your example. Walk your small example through brute force. As Amazon's prep guide puts it, "Start with a working solution and enhance as you go." If the interviewer gives a hint, acknowledge what that hint changes about your approach, and trace the example again.
How to practice restarting a problem while someone watches
Practice the way the round runs (timed, out loud, with someone watching), practice recalling solutions rather than rereading them, and rehearse the restart routine itself. The quick part of this preparation is changing where you practice, not adding dozens of study hours. The studies cited here didn't test whether practice prevents freezing in coding interviews, but rehearsal gives you a chance to try the restart before the interview.
Most candidates in a 2025 survey said their preparation didn't include studying with others. In that survey of 131 candidates preparing for whiteboard-style interviews, Bell and colleagues summarized what respondents reported as "prioritizing coding practice but rarely preparing in front of an audience with observers." The authors recruited 127 participants across two interview-prep platforms and four through their university, covering students and working engineers. Practicing with other people was associated with feeling more prepared for the interview. However, the survey detected no statistically significant difference in reported anxiety during preparation between respondents who said they studied with others and those who said they didn't.
In a meta-analysis, Low and colleagues reviewed 14 studies covering athletes and police officers. On average, groups that trained under simulated pressure did better on pressured tests than groups that practiced as much under lower pressure. They concluded: "The results suggest coaches and instructors should create pressurized training environments rather than relying on greater amounts of training to help performers adjust to pressure."
The transfer of simulation training to real competitive moments wasn't established across the included studies. Describing a 2009 study by Oudejans and Pijpers, which contributed two experiments to the review, Low and colleagues wrote of its pressure-trained and control groups, "The two groups both remained anxious in posttests." Low and colleagues read this as the training getting people used to performing while anxious, and that's the aim of practicing your restart. The review didn't establish which kind of pressure worked best, so building interview exercises on this research is my suggestion.
How you study alone also affects retrieval. In a 2025 meta-analysis, Mihaylova and colleagues examined retrieval practice (self-testing) across lab trials on students, mostly involving word lists, and concluded that their results "suggest retrieval practice provides a stable benefit compared to restudy in both stress and non-stress situations." On average the advantage was about the same size with and without stress, though it varied widely across studies.
If you've solved dozens of algorithm problems alone and still lock up in rounds, change how you practice before adding more solutions to read. On the MentorCruise blog, our guide on LeetCode alternatives and smarter ways to prep outlines how to shift away from passive problem grinding.
To prepare for the freeze, use three practical exercises:
- Solve timed problems out loud in front of a peer, a friend, or a coach.
- Close a solution you've just read and write it out completely from memory rather than reviewing it side by side.
- Rehearse the four-step restart routine on purpose. Stop halfway through a question, pause for 60 seconds, write down an example, and state your next step.
After each mock session, ask your practice partner what you did immediately after you paused, and whether your next move moved the example forward. That feedback tells you the routine is taking hold, even when your pulse is racing.
When practice with an interview coach is worth it
If a peer can tell you what you did just before and after you stalled and help you rehearse restarting, keep practicing with them. Consider paying when you need a realistic round or specific feedback you haven't been able to get, and you can't judge it yourself. If you're not sure freezing is what's costing you offers, note the round where each process ended before changing how you practice.
The primary reason to practice with an outside observer is that, on interviewing.io, candidates' self-assessments matched their interviewers' technical scores only weakly. In a 2015 analysis of 254 technical interviews of engineers with feedback from both candidates and interviewers, founder Aline Lerner wrote that "even though some small positive relationship between actual and perceived performance does exist, it is not a strong, predictable correspondence."
Formal research on coaching shows mixed outcomes. In a 2001 study, Maurer and colleagues examined coaching attendance among 213 candidates applying for promotion into police and fire department jobs in a large city. They reported that "Voluntary attendance at an interview coaching session was positively related to situational interview performance, controlling for job knowledge, motivation to do well, race, and sex," and attendance and preparation were associated with greater use of strategies that helped candidates organize their answers.
Because attendance was voluntary, the study shows an association rather than proof of cause. When researchers tested interview training in a randomized field experiment, the results differed. In a 1987 study, Campion and Campion evaluated a classroom interview-skills training course against self-study. The course produced measurable learning, but "Interviewer evaluations of behavior failed to distinguish between experimental groups, however, and no differences were observed in job offers."
Neither study examined one-on-one technical mock interviews, and neither shows that a paid coach outperforms a dedicated peer who watches you stall and forces you to restart.
If you don't have peers who can run realistic coding loops, or if you need targeted feedback on your technical rounds, we offer one-on-one interview coaching with mock interviews. Our coaching page says "Mock interviews in structured interview coaching copy real interview conditions." It adds, "For technical roles, drills cover problem-solving approaches and how you explain complex concepts simply." You can use those sessions specifically to test your restart routine against an interviewer you don't know.
FAQs
Do breathing exercises or telling yourself you're excited help?
The evidence for using them in the middle of an interview is weak.
In a 2024 meta-analysis of randomized controlled trials on stress mindset interventions, Bosshard and Gomez found that several interventions that taught people to view stress as useful, some combined with additional content, improved performance on average across pooled tasks. The benefit shrank after adjusting for publication bias. The review couldn't take account of the setting or the timing of the intervention, and the authors warn that "the overall effect size is small, and therefore these interventions should not be perceived as “silver bullets” for improving task performance."
Telling yourself "I am excited" was tested in a 2014 study by Brooks, which found that, compared with people who tried to calm down, participants who reappraised anxiety as excitement "feel more excited and perform better" across public speaking and math tasks. A 2025 replication by Poynter and Pasqualini tested 74 students giving speeches at a US university. The excited group reported higher subjective excitement rather than lower anxiety. Across the 71 speeches with observer ratings, "observers did not rate the “excited” group as superior to the “calm” group on any of six measures of performance." The authors also report, "None of the observer ratings differed significantly between conditions".
Breathing exercises gave inconsistent reductions in immediate state anxiety in a 2024 systematic review of brief trials in healthy adults over 18 with no medical diagnoses, where Chin and colleagues found that "Overall, interventions focused on breathing did not produce a significant reduction in state anxiety when compared to control conditions".
Those trials evaluated full exercise sessions rather than a few breaths taken during an interview. These studies don't establish whether either technique helps you restart a coding problem mid-interview.
What if the interviewer stays silent and gives no hints?
It happens. Some candidates report interviewers who barely responded.
In a 2020 study analyzing historical Glassdoor reviews, Behroozi and colleagues noted that candidate experiences vary widely, and while "Candidates feel more comfortable when interviewers occasionally nudge them in the right direction and provide hints," one candidate reported that their interviewer "was mostly on his laptop and barely responded."
If your interviewer offers no interaction, keep the routine running on the screen without waiting for validation: work your example by hand in comments, write the simplest version you can, then trace that code line by line against the example.
In Meta's engineering interview guide, verification is explicitly evaluated as a coding focus area. The guide reminds candidates that "the interviewer will not compile your code," meaning testing by hand is on you. Walking through an example step by step lets the interviewer see how you check your work.