Poor Pigs / August Day 6  Daily challenge
PLEASE UPVOTE IT REALLY MEANS ALOT\n\n\n\n\n\nclass Solution {\npublic:\n   int poorPigs(int buckets, int poisonTime, int totalTime) {\n    \n    // Total Round
PLEASE UPVOTE IT REALLY MEANS ALOT\n\n```\n\n\n\nclass Solution {\npublic:\n   int poorPigs(int buckets, int poisonTime, int totalTime) {\n    \n    // Total Rounds (T) = totalTime/poisonTime\n    // Assume p = no of pigs that will give us the result\n    // Therefore, (T+1)^p >= buckets\n    // Taking log on both sides, p = log(buckets)/log(T+1);\n    // Return ceil of p \n    \n    return ceil(log(buckets) / log(totalTime / poisonTime + 1));\n}\n};\n\n```
['C']