Interview prep · Coding round

Coding interview time management: a 45-minute plan

The plan: introductions to minute 5, the problem restated by 8, a plan and a first Run by 12, a working first version by 20, the follow-up to 35, complexity to 40, and your questions to 45.

If the introductions run long, count from the minute the problem appears: restated 3 minutes in, a first Run 7 minutes in, a working first version 15 minutes in.

By NextBeingUpdated 6-minute read, with a clock to drag

The short answer

A 45-minute coding interview gives you about 35 minutes on the problem. Run your code for the first time around minute 12, once you have a plan. Have a first version of 15 to 20 lines passing its tests by minute 20. Leave the last five minutes of coding for complexity, and the last five of the interview for your own questions.

35 of 45minutes go to the problem. Two published guides to a 45-minute interview, from 2013 and 2022, give the same split: 5 for introductions, 35 for coding, 5 for your questions. Source 1
Minute 12Candidates who passed ran their code for the first time 27% of the way in, in a 2017 analysis of thousands of recorded interviews: minute 12 of 45. Those who failed ran theirs about a minute and a half earlier, so the gap is small. Have a plan before you run, and run by minute 15. Source 2
61%of the time on interview-style problems went by without typing, in a 2024 study of 74 people. While they typed, it was 90 characters a minute. Source 4
Exercise · one minute

Where should you be right now?

Drag the clock to any minute of a 45-minute interview, or play it through.

Minute12Plan
By minute 12

You've described the brute-force solution and walked through a faster one on the example. The first lines are typed, and you press Run for the first time.

Say

“The brute-force solution is… That works but it's slow. I think one pass does it if I keep…”

If you are behind

No faster plan by minute 12? Say so, and write the brute-force solution. You can improve it once it runs.

Code on the screen

5 to 6 lines

A 45-minute coding interview, minute by minute
MinutesStageBy the end of itSayIf you are behindCode on the screen
IntrosYou've each said who you are. The editor is open and you've agreed on a language.“I'm a backend engineer at…, mostly working on…”If the interviewer talks for a long time, that's their call. Keep your own part to 30 seconds.None yet
RestateYou've said the problem back in your own words and asked two or three clarifying questions.“So the input is… and you want… Can it be empty? How large can it get?”If you're still asking at minute 10, take the simplest reading and say so.None yet
PlanYou've described the brute-force solution and walked through a faster one on the example. The first lines are typed, and you press Run for the first time.“The brute-force solution is… That works but it's slow. I think one pass does it if I keep…”No faster plan by minute 12? Say so, and write the brute-force solution. You can improve it once it runs.5 to 6 lines
Write and fixThe first version is finished. You've read each failure out loud and fixed it, and your tests pass.“I'll test two things: the example should give… and the empty input should give…”Not run by minute 15? Run it now, half done. Read what it prints.15 to 20 lines
Follow-upThe interviewer has changed the problem, and your code has grown to about double.“That changes one thing: … Everything else stays the same.”Say what you'd change and where, even if you can't type all of it.30 to 45 lines
ComplexityYou've given the time and space complexity, and said which inputs you'd test next.“It's one pass, so linear time, and it stores one entry per…”Give the complexity in one sentence before anything else. It takes ten seconds.30 to 45 lines
QuestionsYou've asked one or two questions about the team and the work.“What would I work on first?”If you're still coding at minute 40, stop and sum up what works. Keep two minutes for one question.30 to 45 lines

How long should a coding interview solution take?

Ten to fifteen minutes for a first version that runs. One published coding assessment sizes its first level at 15 to 20 lines in 10 to 15 minutes (source 3, read in November 2026).

A 2024 study found similar times. Its 74 participants, students and working programmers, solved interview-style problems remotely with every keystroke logged. They averaged 9.7 and 11.8 minutes on two easy problems and 16.2 minutes on a medium one, with limits of 15 and 20 minutes (source 4). Their answers passed 49% to 66% of the hidden tests on average. A first version that fails some tests is normal, so leave time to fix it. Our page on reading a failed run covers that part.

How long is a coding interview answer, in lines?

About 15 to 20 lines for the first version, and 30 to 45 after one follow-up. Those are the first two levels of the same assessment, which is written for any language (source 3). In November 2026 NextBeing read 20 public statements about timing, by interviewers and in published guides. Two of them give the length of the answer they expect: 10 lines, and rarely more than 15 to 20 (source 6).

Some languages need more typing for the same answer. A 2023 benchmark has the same 164 problems solved by people in six languages. The answers take 1.3 times as many characters in JavaScript as in Python, 1.4 in C++, 1.6 in Go, 1.9 in Rust and 2.0 in Java, indentation included. That is our count of the function bodies in the benchmark’s published data (source 5). If you’re equally good in two languages, pick the one that takes less typing.

Is typing speed what makes you run out of time?

Mostly not. In the 2024 study, 61% of the time on a problem went by without typing (source 4). A rough count agrees. The code left at the end of a passed interview averaged 2,045 characters in the 2017 analysis, and 1,760 in a failed one (source 2). At 90 characters a minute, the 2024 study’s pace while people were typing, 2,045 characters is about 23 minutes with nothing retyped, in an interview of about 50. The two numbers come from different groups of people, so 23 minutes is a rough figure. Two of the 20 statements put the typing of one solution at two to three minutes once the approach is settled (source 6). Settle the approach before you type.

What wastes the most time in a coding interview?

Typing before the approach is settled. At least six of the 20 statements warn against it, the most for any one thing. One says the opposite: get code into the editor early. Next, in about four each: staying on the brute-force solution, long introductions, and staying stuck without taking a hint (source 6). One interviewer gives a hint after one to two minutes of being stuck. After two minutes with no progress, say what is blocking you.

Should you start with the brute-force solution?

Say it in one sentence, then give the faster plan. At least four of the 20 statements say to start with the simplest solution, said or written, and one wants to hear no more than a sentence of it (source 6). One employer’s guide adds that working code that isn’t optimal is better than an idea alone (source 1). Write the brute-force solution only if you have no faster plan by minute 12.

Can you pass a coding interview without finishing?

Sometimes. Seven of the 20 statements address it: four say an unfinished answer can pass and three say it can’t (source 6). So get one version working before you improve it, and say out loud what you would improve.

What if there are two problems, or 60 minutes?

One of the two 45-minute guides fits two problems into its 35 minutes (source 1), and one interviewer in our 20 expects the same. On the clock above, the second problem takes the follow-up’s place, which gives each about 15 minutes after the introductions. For a 60-minute interview, a published guide gives 40 minutes of coding (source 1). As a rough scale, multiply each minute on the clock by four thirds: the problem restated by minute 11, a first Run by 16, a working first version by 27.

What if you can’t run the code?

Trace it by hand at the two points where you would have run it. At minute 12, walk your first lines through the example out loud. At minute 20, walk the whole answer through the example and through the empty input.

What do you do when you’re behind?

  • Say where you are. “I’m at the loop, and the edge cases are next.” The interviewer can’t give credit for a plan they haven’t heard.
  • Say what you’re skipping. Give the reason, and leave it as a comment in the code.
  • Run what you have. Even half done, the output shows what to fix next.

To practice, set a timer for 45 minutes and check two points: the problem restated by minute 8, and a first Run by minute 12.

NextBeing’s coding exercises are sized for this clock: 15 to 22 lines in Python, 20 to 26 in Java or Go. Each step shows the sentence to say, and the code is checked as it is written.

NextBeing for coding rounds

What is published and what is ours

The minutes given to each stage are our own split between the published numbers. The arithmetic on typing and the counts from the 20 statements are ours too. Others published the 35 minutes of coding, the first Run at 27%, the line and minute budgets, and the study’s times and typing figures.

The recorded interviews came from one practice platform and ran about 50 minutes each, so we scaled the 27% to a 45-minute slot: minute 12. They went straight to the question. Counted from the end of the introductions instead, the 27% falls nearer minute 14. The gap between the two groups is small, and the analysis doesn’t claim that a later Run causes a pass. The assessment is a 90-minute test written for senior developers. It gives its second level 20 to 30 minutes, where the clock gives the follow-up 15. The 2024 study compared programmers sober and after cannabis. We use only the sober sessions. Its people were mostly students, and its times are capped by its limits.

The 20 statements are public and first-hand, from 2012 to 2026: a few published guides, and blog posts and forum comments by people who say they give interviews. Some are anonymous. Each count covers only the statements that address the point.

Sources

  1. Four published interview guides give 30 to 40 minutes of coding in a 45 to 60 minute interview: an engineer’s article in ACM XRDS, 2013 and an employer’s guide, 2022 (both 45 minutes, with 35 of coding), an interview provider’s candidate page (60 minutes, with 40) and an employer’s guide, 2021 (about an hour, with 30 to 40).
  2. An analysis of thousands of recorded technical interviews, practice and real, published by an interview practice platform, 2017.
  3. A published framework for a four-level coding assessment (PDF, undated), written for senior developers: level one is three or four simple methods, 15 to 20 lines in 10 to 15 minutes, and levels one and two together are 30 to 45 lines.
  4. He, Parikh, Weimer and Endres, “High Expectations: An Observational Study of Programming and Cannabis Intoxication”, ICSE 2024. Its 74 participants solved interview problems remotely with every keystroke logged, and 71 of them did it twice: once sober and once not.
  5. Muennighoff and others, “OctoPack”, 2023: the same 164 problems solved by people in six languages. The character counts are ours, from the published dataset. The paper’s Table 11 prints the same averages under different columns for Java, Go and C++.
  6. NextBeing, 20 public first-hand statements about interview timing, by interviewers and in published guides, dated 2012 to 2026 and read in November 2026.

Next: how to prepare for a debugging interview, with nine failing programs to find the bug in, and a whole coding round played out.