Skip to content

Glossary: Coding Interviews

Off-by-one error

Also written: off by one

A bug where a count or index is one too small or too large. For example, a window from `left` to `right` holds `right - left + 1` items, not `right - left`.

Where the book teaches it

Related terms

Trace tableSliding window