Can a pig drink from 2 buckets at once?


  • 0
    Q

    Hi everyone!

    I know it's not physically possible to drink from 2 buckets at once.

    What I mean is, can you combine the water from two buckets together into a single bucket and get a pig to drink from that bucket (so the pig is effectively drinking from 2 buckets at once)?

    (After drinking from this bucket, if the pig died within 15 mins, then you would assume one of the two buckets was poisoned.)

    Any thoughts would be much appreciated. :)


  • 0
    A

    I think it's available. tackle buckets as n-dimension array, 2 pigs could find out poisonous one in 5^2, 3 pigs could find out poisonous one in 5^3, and so on.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.