#401
The Banana Caravan
Also asked as: The camel and bananas problem · the banana transport puzzle
One of the classic quant interview questions, free to read in full.
Problem
You have 3000 bananas to deliver to a market 1000 km away. Your camel carries at most 1000 bananas and eats 1 banana per km walked, loaded or empty. You may cache bananas anywhere along the route. What is the maximum number of bananas you can get to market?
Your answer
Accepts decimals, fractions (5/12), and percentages (25%).