3 ms·
Wow that thread is gold hahaha! Bodybuilders making a classic programming off-by-one fencepost error https://en.m.wikipedia.org/wiki/Off-by-one_error https://en
by bavell 8y ago
Wow that thread is gold hahaha! Bodybuilders making a classic programming off-by-one fencepost error https://en.m.wikipedia.org/wiki/Off-by-one_error https://en.m.wikipedia.org/wiki/Off-by-one_error
- loser777 8y agoYes! I have been looking for a name for this type of error for a long, long time. |{i, i+1, i+2, ..., n}| = (n - i) + 1 is a little clunkier to say
- gerbilly 8y agoAlso known as an 'Obiwan error'.¹ 1: http://www.catb.org/~esr/jargon/html/O/obi-wan-error.html http://www.catb.org/~esr/jargon/html/O/obi-wan-error.html
- bavell 8y agoGlad I could help! So satisfying to find a concise name/explanation/rule/heuristic for describing complicated phenomena. ^_^