@siva..
if (n%3 == 0)
"Player 1 will lose"
else
"Player 1 will win. The no. of balls picked in the first turn will be
n%3"
On Saturday, 12 January 2013 18:33:45 UTC+5:30, siva wrote:
>
> consider there are N balls in a basket. 2 players play the turns
> alternatively ..AT each turn,the player
>
> can take 1 or 2 balls from the basket. the first player starts the game..
> Both the players play optimally.
>
> i) Given N,tell whether the 1st player win or loss ?
>
> ii) If player 1 wins, how many balls he should take at this first
> turn(1 or 2) ?
>
--