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 / guest
n-1 if n is odd and n+1 if n is even
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Did c have any year 2000 problems?
What is the total generic pointer type?
Explain what is the benefit of using const for declaring constants?
the question is that what you have been doing all these periods (one year gap)
hi any body pls give me company name interview conduct "c" language only
Write a program to use switch statement.
What is function in c with example?
What is a pointer variable in c language?
What is a rvalue?
Differentiate between a structure and a union.
Does c have function or method?
difference between Low, Middle, High Level languages in c ?
How to explain the final year project as a fresher please answer with sample project
Differentiate between the expression “++a” and “a++”?
What is c token?