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`.
Glossary: Coding Interviews in JavaScript
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`.