Skip to content

Glossary: Coding Interviews in JavaScript

Off-by-one error

Also written: off by one

A bug where a count or index is wrong by exactly one, such as a window length of `right - left` instead of `right - left + 1`.

Where the book teaches it

Related terms

Trace tableSliding window