diff options
Diffstat (limited to 'other/poor-pigs.cpp')
-rw-r--r-- | other/poor-pigs.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/other/poor-pigs.cpp b/other/poor-pigs.cpp deleted file mode 100644 index 7455583..0000000 --- a/other/poor-pigs.cpp +++ /dev/null @@ -1,8 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - int poorPigs(int buckets, int poisonTime, int totalTime) { - return ceil(log(buckets) / log(totalTime / poisonTime + 1)); - } -}; |