Solution: Poor Pigs
Solution: Poor Pigs asks for the fewest pigs needed to identify one poisonous bucket by testing them in rounds before the available time runs out.
We'll cover the following...
We'll cover the following...
Statement
You have buckets buckets of liquid, exactly one of which is poisonous. Your goal is to identify the poisonous bucket by feeding liquid to some number of pigs and observing whether they survive or die. You have a total of minutesToTest minutes to determine which bucket contains the poison.
The experiment proceeds in rounds according to the following rules:
Select any number ...