There are N egg baskets and the number of eggs in each
basket is a known quantity. Two players take turns to remove
these eggs from the baskets. On each turn, a player must
remove at least one egg, and may remove any number of eggs
provided they all belong to the same basket. The player
picking the last egg(s) wins the game. If you are allowed to
decide who is going to start first, what mathematical
function would you use to decide so that you end up on the
winning side?
Answer Posted / playboy
There are N buckets & each contains n eggs in it.
Then let opponent to start a game.
If opponent picks x eggs then u choose n-x from perticular
bucket.
This way u can win...
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What are the loops in c?
What is the use of parallelize in spark?
explain what is a newline escape sequence?
What will be the outcome of the following conditional statement if the value of variable s is 10?
Explain how do you determine the length of a string value that was stored in a variable?
How is a pointer variable declared?
Why void main is used in c?
What is the size of structure pointer in c?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
What is the auto keyword good for?
What is the c value paradox and how is it explained?
Explain what is the difference between functions abs() and fabs()?
Is printf a keyword?
c program for searching a student details among 10 student details
What does 3 mean in texting?