[algogeeks] Re: how many bananas?

2010-12-14 Thread Prims
total bananas=3000 ...max capacity=1000 ==3 trips needed to transport all for traveling 1 km 1st trip 998[eats 1 banana while coming and 1 banana while going back] 2nd trip 998 3rd trip 999[no need to go back] ==5 banana for travelling 1 km since 3 trips involved v spend 5 banana per km v need

Re: [algogeeks] Re: how many bananas?

2010-12-14 Thread Divya Jain
nice solution:) On 14 December 2010 20:54, Prims topcode...@gmail.com wrote: total bananas=3000 ...max capacity=1000 ==3 trips needed to transport all for traveling 1 km 1st trip 998[eats 1 banana while coming and 1 banana while going back] 2nd trip 998 3rd trip 999[no need to go back]