Programmer Puzzles

This is a new section in I Programmer devoted to the sort of "gotchas" we all know and love.

The standard format is to set the background for a problem and then show how it arises on the first page.

The second page then explains why it happens and, if possible, presents a pattern that if followed avoids or at least reduces the frequency of the problem.

Do you have a Programmer Puzzle? If so write it up in our format and send it to the editor we pay $25 for everyone we use.

Check out our Programmer Puzzle guidelines before starting on your masterpiece!