Number buckets from 0 to 3
p0: [0,1] (pig 0 drinks from buckets: 0 and 1)
let pn be true if pig #n is dead.
!p0 && !p1 => 3
!p0 && p1 => 2
p0 && !p1 => 1
p0 && p1 => 0
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.