in reply to Re: 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...
What the 4377 are you talking about? They have no choice about indexes. They can only take from one end of the list or the other. Theoretically, both players can choose to always shift, which means they're both doing even indexes all the time. But that means nothing.
Anyway, your "strategy" is too simple to work, because any successful strategy doesn't ignore the actual values of the numbers in the list. :-)
But maybe you have some other meaning for the word "index" in mind.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Puzzle: Given an array of integers, find the best sequence of pop / shift...
by reasonablekeith (Deacon) on Mar 20, 2006 at 11:36 UTC | |
by McDarren (Abbot) on Mar 20, 2006 at 12:22 UTC | |
by davidj (Priest) on Mar 20, 2006 at 12:36 UTC | |
by McDarren (Abbot) on Mar 20, 2006 at 12:53 UTC | |
by davidj (Priest) on Mar 20, 2006 at 14:01 UTC |