That prsn asked:
You live in a Desert oasis and grow miniature watermelons that are worth a great deal of money, if you can get them to the market 15 kilometers away across the desert. Your harvest this year is 45 watermelons, but you have no way to get them to the market, expect to carry them across the desert. You have a backpack that holds up to 15 melons, the maximum number you can carry at a time. To walk across the desert. you need a certain amount of fluid and nourishment that is supplied by the melons you carry. For each kilometer you walk (In either diction), one mellon must be eaten.
Your challenge is to find a way to get as many melons as possible to the market.
?????







you buy a bigger car,
and drink from a water bottle instead of eating melons.
– Carry 15 watermelons 3 kilometers, drop off 9 watermelons, return consuming
remaining 3 watermelons to get back to the start.
– Repeat the above again.
– Now carry 15 watermelons 3 kilometers so at the 12 kilometer mark, there are
9+9+12= 30 watermelons
– Next, carry 15 watermelons 5 kilometers, drop off 5 watermelons , go
back 5 kilometers, pick up the 15 watermelons remaining, go 5 miles again so
at the 7 kilometers mark = (15 – (3 + 5), there are 5 + 10 = 15 watermelons.
– Finally, carry the 15 watermelons to the destination and arrive with
8 watermelons.