Hacker News new | ask | show | jobs
by fmbb 651 days ago
Off-by-one is not born from the base of the index. It is a general problem a lot of people run into in a lot of different contexts.

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.

1 comments

>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.