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 difference between const volatile int i & volatile const int j;

2 Answers   HCL,


What is the symbol indicated the c-preprocessor?

0 Answers  


who is first prime minister in india??

8 Answers   Wipro,


Explain how can you avoid including a header more than once?

0 Answers  


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

0 Answers  






Write a program to print prime nums from 1-20 using c programing?

13 Answers   IBM,


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL

0 Answers  


Discuss similarities and differences of Multiprogramming OS and multiprocessing OS?

4 Answers   TCS,


Give the Output : * * * * * * * * * *

2 Answers  


Define and explain about ! Operator?

0 Answers  


write a program in 'c' to find the value of p[i+1]^n.p,i,n are arguments of a macro and n is a integer

1 Answers  


main() { int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ; int i, j , k=99 ; for(i=0;i<3;i++) for(j=0;j<4;j++) if(a[i][j] < k) k = a[i][j]; printf("%d", k); }

4 Answers   Vector, Wipro, Zoho,


Categories