Truck driver apple toll puzzle
Filed under Mastek
The question
A truck driver has three bags of 10 apples each and must pass 10 tolls. At each toll, he must pay a number of apples equal to the number of bags he has in the truck. The goal is to maximize the remaining apples at the end, noting that he can pay the required apples from a single bag instead of all bags.
No write-up yet. Related questions below have one.
Related Mastek questions
Collected from public candidate posts and coding forums. Updated Nov 2026.