Koko loves to eat bananas from several piles. Each hour, Koko can choose a pile and eat a specified number of bananas. If the pile has fewer than the chosen number, she eats all the remaining bananas in that pile and chooses to do nothing more that hour. Koko wants to finish eating all the bananas within a given number of hours and needs to determine the minimum integer bananas-per-hour rate that allows her to do so.
Click Run to execute sample tests.