← Questions

Koko eating bananas

0
GoogleCodingLast asked Jan 2025

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.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding