Koko loves to eat bananas. There areN piles of bananas, thei-th pile haspiles[i]bananas. The guards have gone and will come back inHhours.
Koko can decide her bananas-per-hour eating speed ofK. Each hour, she chooses some pile of bananas, and eats K bananas from that pile. If the pile has less thanKbananas, she eats all of them instead, and won't eat any more bananas during this hour.
Koko likes to eat slowly, but still wants to finish eating all the bananas before the guards come back.
Return the minimum integerKsuch that she can eat all the bananas withinHhours.