http://qs321.pair.com?node_id=537945


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