Search
⌘K
Get Premium
Leetcode 875. Koko Eating Bananas
Find the minimum integer eating speed k such that the total hours required (sum over piles of ceil(piles[i]/k)) is ≤ h; because the required hours decreases monotonically with k, this is solved by binary searching k between 1 and max(piles).
Asked at:
Doordash
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid December, 2025
Doordash
Senior
Late April, 2025
Doordash
Mid-level
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.