Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Off-by-one error

Also written: off-by-one

A mistake of exactly one in an index or comparison, such as using while low < high instead of <=, which skips the last item.

Where the book teaches it

Related terms

Binary search