Koko Eating Bananas
MediumLeetCodeBinary Search on Answer
Approach hintTry it first, then revealHide
If speed s finishes in time, every faster speed does too. Binary search s over [1, max(piles)], computing the hours as a sum of ceiling divisions.