How do I decide what to do when I cannot finish an interview exercise in time?
Quick answer
When time is short, stop expanding the solution and protect what you have: make your current result understandable, check the most important part, and label unfinished work plainly. Leave a brief status summary that states your goal, what you completed, what remains uncertain or incomplete, and the next step you would take. If possible, reserve the final few minutes for this handoff rather than working until time is called.
The question, the details, the next step.
A practical checklist
Re-read the prompt and name its central requirement.
Choose one meaningful piece to clarify or check before adding optional polish.
Mark incomplete work and unchecked assumptions accurately.
Prepare a short summary of completed work, open issues, and next steps.
Explain one important prioritization choice without over-apologizing.
A few more useful answers
Should I mention that I ran out of time?
You can state that the work is incomplete, then identify what remains. Keep the explanation brief and focus on your choices and next steps rather than defending the time limit.
Is it better to leave a polished partial answer or a rough attempt at everything?
Prefer a coherent partial result when it lets you show the core reasoning clearly. Still note major untouched requirements so the partial answer is not mistaken for a complete one.
What if the interviewer asks me to continue after I give my summary?
Use their direction to choose the next step. You can briefly confirm what you plan to address, then continue while keeping any assumptions or unfinished checks visible.
