GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode/java/458_Poor_Pigs.java at master · qiyuangong/leetcode Expand file tree/ Copy path458_Poor_Pigs.javaMore file actions 8 lines (8 loc) · 247 Bytes / Copy path458_Poor_Pigs.javaFile metadata and controls8 lines (8 loc) · 247 Bytes 1 2 3 4 5 6 7 8 class Solution { public int poorPigs(int buckets, int minutesToDie, int minutesToTest) { int n = minutesToTest / minutesToDie + 1; int pigs = 0; while (Math.pow(n, pigs) < buckets) pigs++; return pigs; } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |