by fsckboy · 2y ago · 0 comments
Literally it was an off-by-one error. Literally, literal meaning.
It’s for example called “the fencepost problem”: https://betterexplained.com/articles/learning-how-to-count-a...
I agree subtracting or adding one to any number is not the problem. It has to do with counting.
if you are sprint climbing and you put your hand out to grab and you add or subtract the number 1 from where your hand needs to be, it is a problem or contributes to a speed difference.
There are other reasons as well. I think the more common causes are inclusive vs exclusive comparison errors and fencepost.