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
Explain what are preprocessor directives?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
In C language, a variable name cannot contain?
What is huge pointer in c?
What is hashing in c language?
What does struct node * mean?
Difference between malloc() and calloc() function?
What is the use of the function in c?
How do we declare variables in c?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
Tell me what are bitwise shift operators?
How do you determine a file’s attributes?
Why C language is a procedural language?
Can you tell me how to check whether a linked list is circular?
Which header file should you include if you are to develop a function which can accept variable number of arguments?