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 is a far pointer in c?
What is double pointer?
What is wrong with this code?
What are the differences between Structures and Arrays?
What is the purpose of void pointer?
What are comments and how do you insert it in a C program?
What are the types of pointers?
Can i use “int” data type to store the value 32768? Why?
What is function in c with example?
Describe static function with its usage?
What are the types of bitwise operator?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
How can you pass an array to a function by value?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is structure packing in c?