#875 - Koko Eating Bananas
Koko has piles of bananas and h hours. She eats at speed k bananas/hour (one pile at a time, even if k exceeds the pile). Return the minimum k such that she can eat all bananas within h hours.
| Input | Output |
|---|---|
piles = [3,6,7,11], h = 8 | 4 |
piles = [30,11,23,4,20], h = 5 | 30 |
piles = [30,11,23,4,20], h = 6 | 23 |