Puzzle Time - Read, Increment, Write
-
Repeating the answer w/o Klaus’s symbols:
2 scientists. Both go in and see zero. One does 99 of his 100 full cycles, taking the number high.
The 2nd comes in finally does his first write, replacing that high number with 37. 1st guy comes in for his last read and sees 37, leaves. 2nd guy does the remainder of his cycles, taking the number high again.
1st guy comes in, erases the high number, and writes 74 as his final write.
As we discussed earlier, when you expand to 100 scientists just have them do all their 100 cycles after the final guy’s last read but before his final write.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login