Glossary: Data Structures and Algorithms in Go
Off-by-one error
Also written: off-by-one
A mistake of exactly one in an index, loop bound or comparison, such as `for low < high` instead of `<=` in binary search.
Glossary: Data Structures and Algorithms in Go
Also written: off-by-one
A mistake of exactly one in an index, loop bound or comparison, such as `for low < high` instead of `<=` in binary search.