How to Prepare for a Technical Interview
14 minutesInterviewing is probably one of the most important and stressful things you'll go through.
But it's also a process you can learn, practice, and approach with a strategy.
Take a deep breath. You can get the job or internship you want if you put in the time and keep going. This guide shows you how.
Author's note: This article is for software engineers applying to generalist roles. Other technical roles, like front-end developers or DevOps engineers, get assessed differently.
Table of contents
- Which programming language should I choose?
- What is the entire software engineering interview process?
- What should I expect from a coding interview?
- How has AI changed coding interviews?
- Why do coding interviews even follow this structure?
- How am I evaluated?
- How do I prepare for a coding interview?
- What do I do during the actual coding interview?
Which programming language should I choose?
Choose Python.
It's easy to read, learn, and remember. That helps a lot when you're interviewing.
During the actual interview, you'll be stressed. You might forget a bracket or a curly brace, or lose precious time trying to remember some obscure syntax with no docs or examples to look at. You'll get more nervous and wish you had picked a different language.
With Python, you write less code to do the same thing. That saves you time and effort. Python is also easier to learn and remember. That makes you less likely to have to ask your interviewer if you can Google how to do something.
The only reasons to pick a different language are if you're really short on time or you only feel confident in a different language.
What is the entire software engineering interview process?
The process varies by company and role. In general, it follows this format:
-
Online assessment (optional): Companies often start by sending you an online assessment. It's usually on a third-party platform like HackerRank or CodeSignal. You're expected to finish 2-3 coding questions or debugging tasks within a time limit. You can usually pick when you take it. A lot of these tests are proctored now. We explain what that means below.
-
Talk to a recruiter (optional): A recruiter will set up a 10-15 minute phone call with you to see whether your qualifications and skills fit the role their company is hiring for.
-
Technical phone screens: Your recruiter will help you schedule one or two technical phone screens. If you're applying for an internship, sometimes you only need to do a technical phone screen, a behavioral one, or both. You'll probably code in a real-time collaborative editor like HackerRank or CoderPad.
-
Onsite technical interview: This round is usually harder for people applying to full-time roles. Interns may get one too, especially at startups. Some companies fly you out to their office for 4-5 interviews, sometimes with a lunch break in between that's also used to check culture fit. Others do the whole onsite over video. More companies are bringing back at least one in-person round. Be ready to code on a whiteboard. You'll have several technical interviews, a behavioral interview, and possibly a system design interview if you're more senior.
-
Follow-up interviews (optional): If your feedback is split between two ratings, your recruiter may schedule follow-up interviews. These help the company decide whether to move you to the next stage or what engineering level to place you at.
-
Team matching (optional): If you've gotten this far, your interview feedback was positive. Some job postings are for a specific team or organization. In that case, you've probably already talked to the hiring manager. Otherwise, at this stage the recruiter will invite you to talk to teams that might be a good fit for you (and you for them).
-
Negotiations: This part of the process is probably the best use of your time. One simple conversation can raise your pay by tens of thousands of dollars or get you extra benefits. You'll be in the strongest position to negotiate if you have competing offers. Prepare well for every interview!
The process is usually shorter at smaller companies and longer at larger ones. It can help to apply to larger companies first.
What should I expect from a coding interview?
A coding interview usually goes like this:
-
Brief introduction (2-5 minutes): The interviewer will introduce themselves and will probably ask you to do the same. Have a 1-2 sentence intro ready. Keep it short so you have as much time as possible for coding.
-
Coding problem (35 minutes): If you're applying for an internship, expect an easy or medium question. If you're applying for a full-time role, expect a medium question or a multipart question.
-
Questions (5 minutes): The interviewer will give you time to ask questions about the company. Have one or two ready to show you're genuinely interested.
Some companies have longer interviews, potentially up to an hour.
The format varies. Some companies use more "real-world" tasks like debugging a file.
How has AI changed coding interviews?
AI changed them a lot, in both directions. Here's what's different as of 2026:
-
In-person rounds are back. So many candidates were secretly using AI in remote interviews that companies responded by moving rounds back into offices. Google now requires at least one in-person round for many candidates. Remember to practice at a whiteboard again and explain your thinking out loud as you go.
-
Online assessments are proctored. Your camera and mic stay on, your browser is locked down, and copy-paste gets detected. Assume everything you do in an online assessment (OA) is being recorded and analyzed.
-
Never use AI unless you're explicitly told you can. Amazon formally bans it and disqualifies candidates caught using it. Most companies treat uninvited AI use as cheating. If a company hasn't said anything about AI, that doesn't mean you're allowed to use it.
-
Some companies now give you an AI on purpose. Meta and Google have interview rounds where an AI assistant is part of the exercise. You work in a real codebase. You're scored on how you prompt it, whether you check its output, and whether you catch its mistakes. If your loop has one of these rounds, your recruiter will tell you. What they're really testing is your judgment. Clever prompting tricks won't help much. Accepting AI output without reading it is the fastest way to fail.
-
The questions themselves are changing. AI can write a well-known solution instantly. That makes memorizing solutions less useful now. Interviewers are moving toward debugging existing code, extending a codebase, and problems that are left vague on purpose so your clarifying questions become part of the test. Spotting the underlying pattern matters more than ever. Remembering a specific answer matters less.
Interviews now come in two kinds of rounds. People fail them in opposite ways. Some rounds check what you can do without help. The usual mistake there is not talking enough. Other rounds test how you work with AI. The usual mistake there is trusting it too much. Prepare for both.
Why do coding interviews even follow this structure?
-
It gives the interviewer a contained way to test your problem-solving skills.
-
It makes it easier to compare candidates fairly against each other.
-
It applies to most programming jobs. Can the candidate understand the situation, make a plan, communicate well, work with the interviewer, and adapt if the problem changes?
It's not a good way to tell how well someone will do on a specific project. But it's a decent sign of how someone approaches problems logically and whether they can explain their approach well.
How am I evaluated?
Every company has a specific rubric for interviewers to follow. In general, you're evaluated on these things:
-
How are the candidate's comprehension skills? Did they understand the problem? Were they able to adapt when you changed the problem?
-
Is this candidate technically capable of doing this role? Did they finish the question? Did they complete the follow-up questions? Did they need hints, or did they struggle to implement a solution?
-
Can the candidate communicate well? Were they able to explain their approach?
-
Would you want to work with the candidate? How did they react when given suggestions? Were they open to feedback? Would they be enjoyable or easy to work with?
How do I prepare for a coding interview?
Follow all of these rules, not just one or two, if you really care about getting that role. Don't read them and then forget about them. Think them through, make a plan, and put your plan into action.
-
Give yourself at least 3-6 months to prepare.
This is the most obvious rule. So many people still ignore it. Give yourself time to prepare.
I get that you have a whole life to take care of. But getting a job offer is one of the biggest things that can shape your career. Don't put it off. You cannot expect to pass an interview after less than a week of studying.
Make a study schedule that fits your timeline and your daily life. Break your goals down so you can finish each one within a week.
For example, every Monday, pick a set of questions you want to practice. Aim to finish them by Sunday. Your goal could be finishing a whole section that week, or solving 3 new questions and revisiting 2 you've already solved. Adjust your goals based on your overall progress and timeline.
-
Have a good understanding of programming fundamentals
You should know the basics, like initializing variables, writing if/else statements and for/while loops, calculating the time/space complexity of an algorithm, and what object-oriented programming is.
-
Have a good understanding of a list, dictionary, and set
You should know the time complexity of getting and setting values in each of these data structures, and how they differ from each other.
-
Learn the pattern first
Use a tool like InterviewCrunch that focuses on teaching you the pattern behind solving problems.
Many people make the mistake of practicing problems grouped by data structure. This isn't useful. They end up using data structures that don't make sense for the problem. Do they know why they're picking a dictionary over a set, or are they adding a dictionary to the solution for no reason?
Another problem is that you might know a data structure well but still not know how to use it to solve the problem.
-
Practice at least 5 questions using the pattern
Start with a couple of easy problems, then move on to medium ones.
Keep practicing until you can tell when to use that pattern and can solve a medium question without help.
InterviewCrunch already gives you the questions and an order to practice them in.
-
Revisit problems you struggle with
Mark any problem you struggle with and come back to it after 2 weeks.
InterviewCrunch lets you keep track of flagged questions in its interface.
-
Learn advanced data structures as you learn the patterns that require knowledge of them
Don't sit through 10 lectures about data structures before you start studying for interviews. You already know the basic data structures you need for most problems (lists, dictionaries, sets).
Learn the advanced data structures when you get to the patterns that need them. That saves time and keeps you from jumping back and forth between topics. For example, learn linked lists when you start learning linked list manipulation. Learn trees and graphs (adjacency lists, adjacency matrices) when you start learning breadth-first search or depth-first search.
You won't be able to understand linked list manipulation patterns without understanding linked lists first. You also won't need to know about linked lists unless you're doing linked list manipulation problems.
-
Keep practicing until you can solve 15 out of 20 questions
Practice a variety of questions. Mark the ones you struggled with, and practice similar problems that use the same pattern.
Over time, you'll get better at spotting and implementing the pattern. Once you're solving about 75% of questions, you're ready to interview.
-
Take mock interviews
Do mock interviews with your friends. Try to put your least favorite company first when you schedule your real interviews.
What do I do during the actual coding interview?
-
Show up early: Get there before it starts if the interview is in person. Join the meeting several minutes before your start time if it's virtual. Give yourself as much time as you can, even if it's only 1 or 2 extra minutes.
-
Introductions (2-3 minutes): Listen to the interviewer's introduction, then give your own 1-2 sentence intro. Keep it short so you get more time to code.
-
Understand the question (5 minutes): Let the interviewer explain the question. Ask about edge cases. Then make up a test case, say its input and output, and check with the interviewer that it's right.
All of this makes sure you fully understand the question before you start coding. It also shows the interviewer that you can define the scope of a problem before you try to solve it.
-
Explain your general approach to the interviewer (2-5 minutes): Start with the brute force solution, then try to think of an optimized one.
Explain your approach like you're talking to a child. Keep it easy to follow for both of you. That way, the interviewer can stop you if they spot a mistake. You also get a clearer picture of what you're about to do. At the end, ask the interviewer what they think of your approach.
Pay close attention if the interviewer questions your approach at any point after this. They may be hinting at how your plan could go wrong. Let them explain and try not to interrupt. It's OK to ask "What do you mean by that?" if you don't see the issue.
Make a suggestion and see how the interviewer reacts if you're stuck. For example, you could say "I'm thinking we'll need to track the seen numbers with a set..." and watch whether they nod or agree.
-
Start coding a happy case while talking out loud (15-20 minutes): Ask the interviewer whether they want the brute force solution or want you to skip to the more optimal one. Sometimes the brute force solution is so simple that the interviewer is OK with skipping it. Ask if you can write the brute force one first if you can't think of the more optimal solution.
Focus on two things:
-
Write a complete solution, even if it has to be a brute force one. Don't worry about edge cases until you know your code works for a happy case (a normal case). This matters because some working solution is better than an incomplete one.
-
Explain your thought process as you write. Do NOT stay silent. The more you talk, the easier it is for the interviewer to follow what each piece of code is meant to do. Then they can stop you or point out mistakes they see.
Remember that interviewers are also there to help you. Take their help if they offer it.
-
-
Run through the code with a test case (5 minutes): Walk through your code with a test case. Depending on the interview platform, you might also be able to run your code and see which test cases fail. Walk through your code with any test case that fails.
Bugs are expected. The interviewer wants to see whether you can find your own mistakes and fix them.
-
Answer follow-up questions (5 minutes): It's a good sign if the interviewer asks follow-up questions. Talk through your answers out loud again. If you're out of time, you and your interviewer may just talk about the solution without coding it.
-
Ask questions about the company (5 minutes): No matter how the interview has gone so far, this is a good chance to talk with the interviewer and show you're genuinely interested in their company. Have several questions ready and listen to their answers. If you're short on time, you can say "I'm aware we're almost at the end of the interview and want to be respectful of your time." It shows the interviewer you're thinking about them. Finally, thank them for the interview before you leave.
At this point, be extra kind so they leave with a good impression of you. Even if the coding part went badly, they'll know you'd be a nice person to work with.