Coinbase SDE Interview Question 2024 January | Binary Search on Answer Space | On-campus

Question · Posted Jun 2026

Question 1: Koko Eating Bananas Problem Statement Koko loves bananas. There are n piles of bananas. piles[i] is the number of bananas in the i-th pile. Guards will return in h hours. Koko can decide her eating speed k bananas/hour. Each hour she eats from one pile. Return the minimum integer k such that she can eat all bananas within h hours. Constraints 1 <= piles.length <= 104 piles.length <= h <= 109 1 <= piles[i] <= 109 Examples Example ...

The full answer & interview discussion are available to premium members.

Log in Create a free account