As reported: Nutanix MTS-3 (2025), round 2 coding: Koko Eating Bananas, plus an array problem using a priority queue (not remembered).
There are piles[i] bananas in each pile and h hours. Each hour Koko picks one pile and eats k bananas from it (or the whole pile if it has fewer). Return the minimum integer speed k that lets her finish all piles within h hours. This is LeetCode 875 — Koko Eating Bananas.
Example 1
piles = [3,6,7,11], h = 8 -> 4
Example 2
piles = [30,11,23,4,20], h = 5 -> 30
Constraints: 1 ≤ piles.length ≤ 10^4; piles.length ≤ h ≤ 10^9; 1 ≤ piles[i] ≤ 10^9.
Code runner format: one JSON value per line: piles, then h (LeetCode's format). Implement minEatingSpeed(piles, h); the harness prints the speed.