Comment

Comment by chriscbr

nit: On my first read, I was a bit confused trying to solve the puzzle (without TLA+) because the second question was underspecified:

> If the algorithm terminates with b = 1, what must have been true at the start?

For anyone that wasn't clear, "b" isn't the number of beans in general, it's specifically the the number of black beans. Introducing a variable before defining what it is can be a bit confusing, hope this comment helps others.

parent chriscbr 5 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton