LeetCode MEDIUM 875 Koko Eating Bananas Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Koko Eating Bananas
- Main tags:
Array,Binary Search
What the problem is really asking
Koko has several piles of bananas and exactly h hours before the guards return. In one hour, she chooses one pile and eats up to k bananas from that pile. If the pile has fewer than k, she finishes it and the rest of that hour is wasted.