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
i need answer for it
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Why void main is used in c?
Here is a good puzzle: how do you write a program which produces its own source code as output?
why do some people write if(0 == x) instead of if(x == 0)?
What are reserved words?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
Tell us the use of fflush() function in c language?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Why isn't it being handled properly?
Explain bit masking in c?
What is the difference between declaring a variable and defining a variable?
What is logical error?
will u please send me the placement papers to my mail???????????????????
#include
In a switch statement, what will happen if a break statement is omitted?