Plan Before You Prompt

A traditional coding round exposes a missing plan within a minute. You sit at a blank editor with nothing to type, and the silence makes the gap obvious to you and to the interviewer at the same time. That feedback is annoying and it is also useful, because it forces you to go and think.

The AI-assisted round removes it. You paste the problem, something complete-looking appears in three seconds, and now there is code on the screen. It compiles. It has helper functions and reasonable variable names. It feels like progress. What it is, in fact, is somebody else’s plan, and from this point on every decision you make is a reaction to it.

That is the failure mode this skill prevents, and it is the one interviewers describe most often. Strong candidates spend the first few minutes of the round understanding the problem and deciding how to solve it before the chat panel gets a say (Hello Interview, Planning Your Approach Before Prompting).


Three ways this goes wrong

Pasting the raw problem in and building on whatever comes back. The most common one. You have not formed an approach, so you outsource the approach, and then you spend the remaining forty minutes doing maintenance on a design you never chose. It is hard to critique code when you have no independent view of what the code should have been — you have nothing to compare it against except itself.

Following the model into decisions that were yours to make. The model will suggest a class hierarchy, a caching layer, an abstraction over two call sites. Each suggestion is individually plausible. Accept three of them and the shape of your solution now belongs to the tool, and when the interviewer asks why it is structured that way, the honest answer is that it came out like that. Architecture is the part of the work being graded. Giving it away is giving away the signal.

Chasing a model-suggested rewrite when it does not know the answer. This is the expensive one. You are stuck, you ask for a different approach, you get one, you start implementing it, it also does not work, you ask again. Each cycle feels like momentum because something is happening and code is changing. It is really the model guessing, and you are paying for the guesses with the only resource you cannot get more of. Hello Interview’s pattern write-up describes the related trap from the input side: a vague idea of the solution produces a prompt skewed toward that vagueness, and the output is a contorted version of a wrong idea (Hello Interview, Common Patterns).

All three have the same root. Without your own plan you cannot tell the difference between the model being right and the model being confident.


Recognition is speed

The clearest evidence for planning is a time comparison.

A candidate who got Meta’s substring problem already recognised it as depth-first search with backtracking. He said so to the interviewer, used the assistant only for the trie implementation, and finished all three phases in forty minutes. Candidates who instead opened with a question along the lines of “how should I solve this?” then had to spend time evaluating whatever came back, and consistently ran short on time (Hello Interview, Meta’s AI-Enabled Coding Interview).

Look at what the recognition actually bought him. Not typing speed — the model typed either way. It bought him the ability to skip the entire evaluate-a-proposal step, to issue one narrow prompt instead of a conversation, and to know immediately whether what came back was right. Algorithmic knowledge in this format converts directly into clock.

The same thing shows up in the small. Take the maze solver from our sandbox. The brief for its third phase says the solver reports a much longer walk than the direct route and takes a while doing it. If you recognise “shortest path, unweighted edges” as breadth-first search with a visited set, you are done thinking: the frontier needs to be a queue rather than a stack, and cells need to be marked on the way in. That is a ten-second diagnosis and a one-line prompt. If you do not recognise it, you are now in a conversation about path-finding strategies with a tool that will cheerfully offer you Dijkstra, A* with a heuristic, or memoised depth-first search, all of which are more complicated than the right answer and one of which is wrong.


What to actually prepare

The algorithm families that keep surfacing in candidate reports from this format are narrow enough to be worth drilling directly:

  • Backtracking
  • BFS and DFS, including shortest-path and visited-set mechanics
  • Greedy, and when it fails
  • Tries
  • DP fundamentals
  • Bitmask techniques

You do not need to have the implementations memorised. That genuinely is what the model is for, and spending your preparation time on muscle memory for a trie node is a poor trade when you can specify one in a sentence. What you need is to recognise which family fits within seconds of reading the problem — fast enough that recognition happens while you are still reading, not as a separate phase afterwards.

DSA Fundamentals covers these families with the recognition cues attached, which is the half that matters here. Then grind the recognition itself in the Problem Set: read a problem, name the family and the data structure out loud, and move on without implementing it. Fifty problems like that build the reflex faster than ten problems solved end to end.

One more thing, and it is counterintuitive given the format: keep practicing hard problems without any AI at all. Candidates who had never worked without the assistant were the ones who came apart when it stopped being useful mid-round, and reports from the real thing say it is markedly less helpful than the practice environment. The model may not carry the core algorithmic insight for you. If it does not, the insight has to come from somewhere, and the only other source in the room is you.


What a plan looks like

A plan here is not a design document. It is four things you can say in thirty seconds:

  1. What kind of problem this is. “Shortest path on an unweighted grid.”
  2. The data structure that follows from it. “Queue for the frontier, set for visited.”
  3. The order you will build in. “Fix the traversal first, confirm the five existing tests pass, then add the gate rule.”
  4. The thing you expect to be hard. “The gate check depends on the direction of travel, so the frontier has to carry direction, not just position.”

That fourth item is the one people skip and it is the one that earns the most. Naming the hard part in advance tells the interviewer you have thought past the happy path, and it tells you which prompt to write carefully.


In the interview room

Planning happens in the five minutes after orientation and before your first prompt. Here is how to spend them.

Say the plan to the human before you say anything to the model. Literally in that order. “This is a shortest-path problem on an unweighted grid, so I want a BFS with a visited set. I’ll fix the traversal first, confirm the existing tests, then handle the gates. The part I expect to be fiddly is that the gate rule depends on direction of travel, so the frontier needs to carry direction.” Thirty seconds. You have now been graded favourably on problem solving and communication before the assistant has been used once, and if your plan is wrong this is the cheapest possible moment to find out.

Ask the interviewer to react. “Does that sound reasonable to you?” Most will say yes and some will nudge. A nudge at minute six is worth twenty minutes later, and asking is not weakness — it is the collaborative behaviour the round is designed to observe.

Then open the chat, and make your first prompt narrow. The first prompt is where plans are won or lost. If it names a component (“implement a trie class supporting insert and prefix search, where each node holds a character and an end-of-word flag”) you stay in charge. If it names the problem, you have just handed over the plan you spent five minutes forming. The test is simple: could the model’s answer surprise you architecturally? If yes, the prompt is too wide. Rewrite it before you send it.

Use the model to check your plan, not to make it. There is one high-value exception to keeping it out of planning, and it is cheap: state your intended approach and ask it to compute the time and space complexity before you implement anything. You get a fast second opinion on the plan, and the interviewer watches you validate a trade-off rather than assume one. “I’m planning BFS over up to twenty-two thousand cells with a visited set — confirm the complexity and tell me if you see a reason that’s wrong for this input shape.”

Thirty-second rule for drift. When the model proposes a different approach from yours, you get thirty seconds to decide, and the decision has exactly two outcomes. Either it has told you something you did not know — a complexity bound, an edge case, a structure that genuinely fits better — in which case say so explicitly and revise the plan out loud: “it’s pointing out that gates make this directional, which my plan didn’t handle, so I’m changing the state to include direction.” Or it has not, in which case say no and restate: “I’ll stay with BFS, just implement the queue version.” Do not enter the third state, where you half-adopt the suggestion and end up with two designs interleaved in one file.

The stuck protocol. If you are stuck on the approach, the move is not to ask for another approach. Ask the model a factual question instead, and keep thinking yourself. Good factual questions: what is the complexity of this, what does this library call return on empty input, what are the standard algorithms for shortest path on an unweighted graph. Bad: how should I solve this. The first kind gives you material. The second kind gives you a plan you did not make, at the exact moment you are least equipped to audit it.

Budget it explicitly. Roughly: five minutes orientation, five minutes planning and stating it, thirty minutes implementing and verifying, and whatever is left for the scaling phase. The fifteen-minute mark is a checkpoint — if you are past it and still deciding your approach, stop deciding, pick the approach you understand best even if it is not optimal, say “I’m going with BFS now and I’ll revisit if the inputs get large,” and start building. A working suboptimal solution you can explain beats a perfect plan with no implementation, and interviewers say so directly.

Narrate the revision, not just the plan. Plans change, and changing yours is not a failure as long as it is visible. “Phase three generates a hundred-and-fifty by hundred-and-fifty grid, so my per-cell dictionary lookups are now the bottleneck — I’m switching the visited set to a flat array indexed by row times width plus column.” That sentence is the whole skill in one breath: you had a plan, you measured it, you changed it for a stated reason.

Prepare the muscle, not the script. The night before, do not reread this page. Open the sandbox, read three problem briefs, and for each one say the four-part plan out loud and write nothing. You are drilling recognition speed, which is the only part of planning that is hard under a clock. Then go argue with a model about an approach you already know is right, and practice saying no to it — that is the other half, and it is covered in prompt granularity.