Skip to content

Glossary: Coding Interviews in Go

Off-by-one error

Also written: off by one

A bug where a count or index is one too big or too small, such as using `right - left` instead of `right - left + 1` for a window's length. A trace table finds it.

Where the book teaches it

Related terms

Trace tableSliding window