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?



There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take..

Answer / guest

if anyone knows do reply me to this answer.....

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More C Interview Questions

what is the maximum limit of row and column of a matrix in c programming. in linux .

4 Answers   NIIT,


Program to find the value of e raised to power x using while loop

5 Answers   IBM, N Tech,


How can my program discover the complete pathname to the executable from which it was invoked?

0 Answers  


What is hashing in c?

0 Answers  


Where can I get an ansi-compatible lint?

0 Answers  






write a program that uses point of sale system. which are mainly used by retail markets, where the is a database inventory list, a slip should be printed for the customer. manage should be able to access what has been sold and what is left from stock?

1 Answers  


How Many Header Files in c?

2 Answers   TCS,


main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?

5 Answers   TCS,


Can you please explain the difference between malloc() and calloc() function?

0 Answers  


What is typedef example?

0 Answers  


How can I write functions that take a variable number of arguments?

0 Answers  


What is sizeof array in c?

0 Answers  


Categories