Play for coin puzzle

488.9K Views

There are ‘n’ coins in a line. (Suppose n is even). Two players take turns to take a coin from one of the ends of the line until there are no more coins left. The player with the larger amount of money wins.
Assume that you go first, describe an algorithm to compute the maximum amount of money you can win.

Share
Add Comment

  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.
  • More puzzles to try-