26/29
Part 6 of 6 · Pacing, and what interviewers askLearn

Inside a level, run one loop and give a stuck test five minutes

Run the same loop inside every level:

  1. Read for two minutes and write the model comment.
  2. Make the smallest method pass, and run the tests.
  3. Fill in the rest, then add your own boundary tests.

When a test won't pass, change how you look at it:

  1. Give it five minutes of tries.
  2. If they found a new fact, keep going.
  3. If not, reread the spec sentence the test covers, and run its input by hand.
  4. Then check, in order: the boundary, the missing case, the sort order, the types.
Predict

Five minutes on one failing test, and no try found a new fact. What next?

Pick an answer above to see the rest