Koko eating bananas

0
Remix

There are piles of bananas and h hours. Each hour Koko eats up to k bananas from one pile. Return the smallest integer k that lets her finish every pile within h hours. Binary search on k.

GoogleTechnical phone screenLast asked Jan 2025
No answer yet. Write the first one; the best answer gets endorsed.