leetle

Daily challenge for 2025-08-25

237. Koko Eating Bananas

Write a function solve that returns the minimum integer eating speed k such that Koko can eat all piles within h hours. Each hour she eats up to k bananas from a single pile. If there are no piles, return 0.

Example:
Input: piles = [3,6,7,11], h = 8
Output: 4

Run this challenge interactively in Python or JavaScript when the app loads.