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 / khushboo
It is said that there are N egg bags with eggs in it. So
every bag should have eggs..
Now answer depends on Number of Bags containing only one bag
Suppose there is
1. all bag contains more then 1 egg then I will choose first
2. only one bag with one egg then I will choose second
3. Two bags contain one egg I will choose third..
So It depends on how I reach to the last bag in first place
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is sizeof in c?
Write a program that accept anumber in words
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
What is header file in c?
find out largest elemant of diagonalmatrix
What would be an example of a structure analogous to structure c?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
can any one tel me wt is the question pattern for NIC exam
Explain what are the different file extensions involved when programming in c?
What is a class c rental property?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is #include stdio h and #include conio h?
What is openmp in c?
What’s a signal? Explain what do I use signals for?
Explain how do you generate random numbers in c?