Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

off-by-one error

A loop that runs one pass too many or one too few.

A bound or starting value wrong by one, typically < written for <= or a count started at 0 instead of 1; for (int i = a; i < b; i++) runs b - a times.

Examples

  • for (int i = 0; i <= a.length; i++) reads one past the end and throws.

Read the full section →