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 do you understand by friend-functions? How are they used?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Why clrscr is used after variable declaration?
What are c preprocessors?
Why & is used in scanf in c?
What is the difference between text and binary modes?
Explain what is a program flowchart and explain how does it help in writing a program?
Explain what are header files and explain what are its uses in c programming?
What does calloc stand for?
What are compound statements?
What does *p++ do?
Difference between exit() and _exit() function?
Explain what is gets() function?
Which is an example of a structural homology?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant