“Off-by-one” problem
A common mistake that novice computer developers can make is “off-by-one” computing problem. It may happen in a computing code in a loop definition, where start of a loop needs to use 0 as a starting point, and instead 1 is being used. In this case a loop completes all of the iterations except one. That loop criteria in this case will depend on the loop finish condition.
Comments
Post a Comment