In this game, which we will call the coins-in-a-line game, an even number, n, of coins, of various denominations from various countries, are placed in a line. Two players, who we will call Alice and Bob, take turns removing one of the coins from either end of the remaining line of coins. That is, when it is a player’s turn, he or she removes the coin at the left or right end of the line of coins and adds that coin to his or her collection. The player who removes a set of coins with larger total value than the other player wins, where we assume that both Alice and Bob know the value of each coin.
http://tech-queries.blogspot.in/2011/06/get-maximum-sum-from-coins-in-line.html
ReplyDeletehttp://people.csail.mit.edu/bdean/6.046/dp/
ReplyDeletehttp://www.leetcode.com/2011/02/coins-in-line.html
ReplyDelete