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 boolean in c?

0 Answers  


What is the hardest programming language?

0 Answers  


What language is windows 1.0 written?

0 Answers  


What is %s and %d in c?

0 Answers  


int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?

6 Answers   TCS,






How can I manipulate individual bits?

0 Answers  


Write a program that his output 1 12 123

0 Answers  


How will you write a code for accessing the length of an array without assigning it to another variable?

0 Answers  


/*what is the output for the code*/ void main() { int r; r=printf("naveen"); r=printf(); printf("%d",r); getch(); }

1 Answers   CDAC,


What does emoji p mean?

0 Answers  


size maximum allocated by calloc()

3 Answers   DELL,


What are 'near' and 'far' pointers?

0 Answers  


Categories