1class Solution {2 public int poorPigs(int buckets, int minutesToDie, int minutesToTest) {3 int T = (minutesToTest / minutesToDie) + 1;4 int cnt = 0;5 int total = 1;6 while (total < buckets) {7 total *= T;8 cnt++;9 }10 return cnt;11 }12}
WPM •0 •0
ACC •0 •0
TIME •0