Koko loves bananas. There are n piles of bananas. She can eat at speed k bananas per hour. Each hour she picks one pile and eats k bananas from it (or finishes it if fewer remain).
She has h hours to eat all bananas. Find the minimum speed k such that she can finish within h hours.
This is binary search on the answer! Search space: k from 1 to max(piles). For each k, calculate total hours. If ≤ h, try smaller k.
min_eating_speed([3,6,7,11], 8)
4