What to Do Before a Coding Interview: Stop Studying

- No new problems after T-3h: the final hours are a performance window, not a study window
- Warm up with a problem you've already solved for 10-17 minutes, then stop completely 15 minutes before the call
- Run the full environment check 90 minutes out: network, audio, video, platform, and invite link in incognito
- Eat and hydrate: 2% dehydration measurably impairs working memory and attention during the interview
- Don't try to calm down: say "I'm excited" out loud and use box breathing to redirect arousal, not suppress it
- Go quiet 15 minutes before the call: switch from preparation mode to performance mode and trust the prep
You know what most engineers do with the 3 hours before a coding interview? They open LeetCode. They find a medium problem they haven't seen, grind through it for 40 minutes, don't solve it cleanly, and walk into the interview carrying a fresh failure in their working memory. The prep was already done. This isn't prep anymore. This is the worst possible use of 3 hours.
Those final hours shift the entire goal: you're not adding knowledge, you're priming the systems you already built. That takes a different kind of routine. Here's what the right one looks like.
You're Done Learning. That Already Happened.
If you've spent the last week or month preparing, the last 3 hours will not close a knowledge gap. Dynamic programming either clicked or it didn't. Graph traversal is in your hands or it isn't. Three more hours of review won't change that. They will, however, remind you of every gap in your knowledge right before you need to perform.
What those 3 hours can do is spike your cortisol. An unfamiliar hard problem you fail to solve at T-minus-2 hours is a confidence crater. Your brain doesn't distinguish between practice failure and real failure. It just registers: got stuck, then immediately must perform under pressure. That is the worst possible state to bring into a room.
The rule is simple: no new material after T-3h. You can touch code. You cannot touch unfamiliar problems. If you catch yourself opening a new LeetCode problem, close the tab. Then close the browser. Maybe close the laptop entirely and go stare at a wall for a while. That's a better use of the time.
The Warm-Up Problem Is Not What You Think
You should write code before your interview. Just not the way most people do it.
There's a Goldilocks effect in cognitive priming research: brief warm-up tasks before a performance activity measurably improve accuracy and response speed. The optimal window is roughly 10 to 17 minutes. Push past 30 minutes of continuous cognitive loading and performance drops below baseline. Overloaded, not primed.
Pick one problem you've already solved before. Something structural: reverse a linked list, binary search on a rotated array, BFS level-order traversal, two-pointer on a sorted input. The point isn't to solve something new. The point is to prime the circuit. You want your brain producing that specific flavor of pattern reasoning before it has to do it under real stakes.
Set a timer for 20 minutes. If you finish cleanly at 15, stop then. Stop completely 15 minutes before the interview starts. Close the tab.
The wrong version looks like this: "I'll just grab a random medium to warm up." That's a trap. Random problems are unpredictable. You want to succeed at this warm-up, not discover mid-problem that you've somehow forgotten how to code. A small win calibrates your confidence upward. A surprise failure does the opposite.
If you want reps with real interview pressure before the actual day, SpaceComplexity runs voice-based mock interviews that simulate the timing and feel of a live session. The warm-up problem the morning of the real interview should be easy. Almost boring. Save the pressure simulation for practice.

The company posted a frontend role. The interviewer has a LeetCode problem. These facts coexist peacefully.
Skim the Sheet. Don't Read It.
If you built a cheat sheet during prep, now is the right time for one pass. Not deep review. A quick visual sweep: key complexities you tend to blank on, the algorithmic shapes that get fuzzy under pressure, any patterns specific to this company's known preferences.
Ten minutes. Set a timer. You're not loading new information. You're refreshing access to things already in there. Reading anxiously, chasing gaps, re-reading the same BFS pseudocode four times and still not feeling sure about it. That's still studying. It also doesn't work: anxiety impairs the retrieval you're trying to confirm.
Skim, stop when the timer goes off, close it. Trust that the weeks of preparation landed somewhere.
The Setup Is Where Interviews Actually Fall Apart
This section has zero glamour and significant impact. Audio problems, screen share fails, wrong coding platform loaded, Slack notifications popping up mid-explanation. Every interruption breaks your flow and signals to the interviewer that you didn't care enough to check. Or that your computer actively hates you, which is also possible but harder to plan for.
Run the full environment check 90 minutes before the call.
Network. Use ethernet if you have it. Close anything that hammers bandwidth: cloud backups, software updates, video streaming. If your connection is unreliable, have a mobile hotspot confirmed and ready before you need it.
Audio and video. Join a test call on the actual platform: Zoom, Google Meet, CoderPad, HackerRank. Actually speak and listen back. Confirm the mic isn't picking up background noise. Check your background looks like a professional workspace and not like you are currently living through something.
Coding environment. Open the interview platform, not your local IDE. Log into whatever editor they use. Confirm your preferred language is set. Adjust font size now. Turn off autocomplete if it tends to interrupt your reasoning mid-thought.
Notifications. Do Not Disturb on. Slack closed, not just muted. Every badge off. A notification in the corner costs you attention recovery time you cannot spare while talking through an algorithm.
The invite link. Open it in incognito. Some platforms behave strangely if you're already logged in as a different account. Find that out now, not two minutes before the interview starts.
Eat Something Real. Drink Water.
This sounds obvious until you skip it because you're anxious and not hungry and you've decided that coffee and anxiety count as a complete breakfast.
Mild dehydration, around 2% of body weight, measurably impairs working memory, attention, and reaction time. The insidious part is that dehydration also blunts self-monitoring. You don't notice you're slower. Drink water now and keep a glass within reach during the interview.
Eat a real meal 2 to 3 hours before. Protein, complex carbs, something with fat. Eggs and toast, yogurt with nuts, whatever you normally have that doesn't leave you heavy. Not just coffee. Not a pastry. The glucose crash from eating pure sugar lands directly in your interview window and it does not help.
Stay at your normal caffeine level. Today is not the day to experiment with a triple shot because you think you need an edge. An unusual dose adds jitter to a nervous system that's already running warm.
Don't Try to Calm Down
Most advice about interview nerves tells you to relax, to breathe deeply, to lower your heart rate. That's the wrong target.
Anxiety and excitement are physiologically nearly identical. Both are high-arousal states: elevated heart rate, heightened attention, faster breathing. Trying to suppress that arousal takes real effort and mostly fails, because your body is genuinely preparing for something high-stakes and it isn't wrong to do so.
Research by Alison Wood Brooks at Harvard tested what happens when people in anxious states are told to either calm down or get excited before a performance task. People who said "I am excited" out loud consistently outperformed those who tried to calm down, across karaoke, public speaking, and math tests. The physiological state was nearly the same. The cognitive framing shifted, and with it, the performance.
That's cognitive reappraisal: not suppressing the arousal, but reinterpreting what it means. Anxiety reads the signal as threat. Excitement reads the same signal as opportunity. One opens up your thinking. The other narrows it.
You're not pretending not to be nervous. You're reading the signal accurately. Your body is alert. That's useful. Say "I'm excited about this" out loud. It works better than it sounds and looks less weird than it feels.
For the physiological side, box breathing gives you a concrete tool: inhale for 4 counts, hold for 4, exhale for 4, hold for 4. Two or three cycles. This activates your parasympathetic nervous system without suppressing your arousal. Do it while the meeting link is loading.

This is what happens when you try to calm down and it doesn't work. The spiral is not the strategy.
Go Quiet. Switch Modes.
Fifteen minutes before the call, close the laptop or minimize everything. No more review. No more warm-up. No more checking Slack for good luck messages.
This is the transition moment. You've been in preparation mode for days or weeks. Now you switch to performance mode. Those two modes require different mental states. Preparation is active, always looking for gaps. Performance is focused, trusting, forward-facing.
Sit somewhere quiet. Think about process, not outcome. When the problem comes, you'll listen carefully and ask a clarifying question or two before rushing to code. You know how to do this. You'll think out loud as you build toward a solution. You'll write clean, readable code and walk the interviewer through it. Those are the things within your control.
If you want to know exactly what questions to ask before jumping into a solution, the clarifying questions guide is worth a read before you get to this point. And if you're going in worried about whether you'll communicate your thinking clearly enough, this piece on technical interview communication covers what actually costs candidates offers.
When the call starts, you're not trying to be impressive. You're just doing the thing you've practiced.
The Full Sequence
- No new problems after T-3h. You're in performance mode, not prep mode.
- Do one problem you've already solved. Stop 15 minutes before the interview. The goal is to prime pattern recognition, not add to it.
- Skim the cheat sheet for 10 minutes. Set a timer. Stop when it goes off.
- Run the full environment check 90 minutes out: network, audio, video, coding platform, notifications, invite link in incognito.
- Eat a real meal 2 to 3 hours before. Drink water. Stay at your normal caffeine level.
- Don't try to calm down. Say "I'm excited." Do two rounds of box breathing. Redirect the arousal, don't fight it.
- Go quiet 15 minutes before the call. Trust the prep. Think about process, not outcome.
Further Reading
- Box breathing, Wikipedia
- Cognitive reappraisal, Wikipedia
- Get Excited: Reappraising Pre-Performance Anxiety as Excitement, APA Journals
- Cognitive Priming During Warmup Enhances Performance: A Goldilocks Effect, PMC
- Effects of hydration status on cognitive performance and mood, British Journal of Nutrition