Re: [algogeeks] Kingdom Of MapleWood

2011-05-22 Thread immanuel kingston
Since the number of islands is even, either the sum of areas of islands in the even position have a greater area or the ones in the odd position have greater area. Eric can start from the 1st island if the sum of areas of the islands at the odd position is greater than that of even ones.or can sta

[algogeeks] Kingdom Of MapleWood

2011-05-02 Thread abhishekriyer
Kingdom of Maplewood is a beautiful country comprising of a lot of small islands of different areas. All the islands are in a straight row. King Rosewood is getting old and has decided to divide the islands among his two sons - Eric and Finn. Luckily, the total number of islands is even. He has als