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.
Glossary: Data Structures and Algorithms in JavaScript
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.