You can't see a binary string — you can only ask whether a range of it contains a 1. Find every 1 with as few questions as possible.
You can't see a binary string — you can only ask whether a range of it contains a 1. Find every 1 with as few questions as possible.
The discussion opens with the full question.