2n random numbers are laid in a row. We take turns to take a number. Each time, one can choose from the number on the tail or the head of the sequence/row. The one with the bigger summation wins the game. If I go first, can I always win (or tie)?
My approach:
Let's start with a base case of n = 1. In this case we can see both the numbers and guarantee a win (or tie in case both numbers are the same).
n=2: Let's say the numbers are 4, 1, 9, 10 and I pick 10 first between 4 and 10. Now the sequence is 4,1,9 and my opponent chooses 9 between 4 and 9. Now its my turn and I choose 4 between 4 and 1. Thus I can win.
Wondering if my approach is correct and if there is a more general solution for 2n numbers in this case