✔️ C++ || Math-Easy || One-line (100% faster)
\nclass Solution\n{\n    public:\n        int poorPigs(int N, int Die, int Test)\n        {\n            return ceil(log2(N) / log2(Test / Die + 1));\n\t\t\t/* 
````\nclass Solution\n{\n    public:\n        int poorPigs(int N, int Die, int Test)\n        {\n            return ceil(log2(N) / log2(Test / Die + 1));\n\t\t\t/* if there are N buckets then there should be a min x pigs to test which of the buckets is poisonous in \n\t\t\t    T tests which follows the equation (T+1)^x>=N, where T=Test/Die */\n            //Hence x will the min value of log(N)/log(T+1) which can be calculated by ceil function \n        }\n};\n\n````
['Math', 'C']