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:
- Read for two minutes and write the model comment.
- Make the smallest method pass, and run the tests.
- Fill in the rest, then add your own boundary tests.
When a test won't pass, change how you look at it:
- Give it five minutes of tries.
- If they found a new fact, keep going.
- If not, reread the spec sentence the test covers, and run its input by hand.
- Then check, in order: the boundary, the missing case, the sort order, the types.
Five minutes on one failing test, and no try found a new fact. What next?
Pick an answer above to see the rest