2 ms·
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 “th
by fmbb 2y 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-avoiding-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.
- fsckboy 2y ago>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.