Skip to content
Preptima
mediumCodingDesignMidSeniorStaff

Two candidates write the same class and one passes. What did the other one not say in the ten seconds before typing?

The passing candidate said, before typing, which approach they chose, which alternative they rejected and what that choice costs. Identical code then reads as a decision rather than recall, the interviewer can redirect before the time is spent, and later follow-ups confirm rather than interrogate.

5 min readUpdated 2026-10-09

Answer

Short answer

They did not say why. In a machine coding round, the passing candidate spends ten seconds naming the approach, the alternative they rejected, and what the choice costs, and then types. The other candidate types the same class in silence. The code is identical, but only one of them has given the interviewer evidence of a decision, and for a senior role that evidence is what is being graded.

Was this answer helpful?

Likely follow-ups

  • You announced notifyAll and the interviewer asks why not notify. What breaks with a single monitor and notify?
  • Halfway through, you realise two conditions would be cleaner than one monitor. Do you say so, switch, or finish first?
  • The interviewer says the standard library class is fine to use. What do you still have to say about it before you call it done?
  • How does the ten-second statement differ for a mid-level candidate and a senior one on the same class?

Related questions

Related Topics