Available question text
Given a number of buckets and limited time allowing repeated test rounds, determine the minimum number of pigs whose alive/dead outcomes across those rounds uniquely identify the single poisonous bucket. Key idea: each pig has (minutesToTest/minutesToDie + 1) possible outcomes (which round it dies in or survives), so find the smallest p with (rounds+1)^p >= buckets.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 458. Poor Pigs
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source