Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^7: Puzzle: Given an array of integers, find the best sequence of pop / shift...

by davidj (Priest)
on Mar 20, 2006 at 14:01 UTC ( #537945=note: print w/replies, xml ) Need Help??


in reply to Re^6: Puzzle: Given an array of integers, find the best sequence of pop / shift...
in thread Puzzle: Given an array of integers, find the best sequence of pop / shift...

Sure the 2nd player will take the higher of the two. But that is irrelevant, because that player can be forced to take all odd or all even. With that, the outcome is known in advance, and the first player will know which one (odd or even) to take for herself.

dave
  • Comment on Re^7: Puzzle: Given an array of integers, find the best sequence of pop / shift...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://537945]
help
Chatterbox?
[xablau]: soap
[marto]: water?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2017-01-19 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.