Loading page…
A maps app counts the rises in a bus's speed readings, and the teammate's job returns three where the hand count is two. Tracing by hand shows that place zero is compared with the last reading. The lesson covers trace tables, printing state, shrinking a failing input from eight readings to two, comparing with a brute force, off by one errors at the ends of a loop, and why fixing by trial fails.
You work on a maps app.