Question: Design an O(n)-time non-losing strategy for the first player, Alice, in the coinsin-a-line game. Your strategy does not have to be optimal, but it should
Design an O(n)-time non-losing strategy for the first player, Alice, in the coinsin-a-line game. Your strategy does not have to be optimal, but it should be guaranteed to end in a tie or better for Alice.
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
If she wants to Alice can take all the evenindexed coins and for... View full answer
Get step-by-step solutions from verified subject matter experts
