Glossary: Coding Interviews in Go
Off-by-one error
Also written: off by one
A bug where a count or index is one too big or too small, such as using `right - left` instead of `right - left + 1` for a window's length. A trace table finds it.
Glossary: Coding Interviews in Go
Also written: off by one
A bug where a count or index is one too big or too small, such as using `right - left` instead of `right - left + 1` for a window's length. A trace table finds it.