58.Apples to Orlando
★★★puzzlesJane Street
You have 2500 apples and a truck that carries at most 1000 at a time. The truck consumes 1 apple per mile travelled in either direction, and apples may be dropped anywhere along the route to collect later. Orlando is 800 miles away. What is the greatest number of apples you can deliver?
Sign in to submit an answer and track it toward your stats.
Sign inHint
The cost per mile depends on how many truckloads remain: three loads means five traversals per mile, two loads means three. Find the miles at which the stock drops through each threshold.
Want timed drills, mental math, and a market-making game too? Try the full practice suite →