C++ || One Line Code || ✅⭐⭐
DO UPVOTE IF IT HELPS !!!!!!\n\t\n\tint poorPigs(int buckets, int poisonTime, int totalTime) {\n        \n        // Total Rounds (T) = totalTime/poisonTime\n  
***DO UPVOTE IF IT HELPS !!!!!!***\n\t\n\tint 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    }
['Math', 'C']