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
What is function pointer c?
What is the best organizational structure?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
What is the use of bitwise operator?
How many keywords (reserve words) are in c?
What type of function is main ()?
Why shouldn’t I start variable names with underscores?
Can two or more operators such as and be combined in a single line of program code?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What are logical errors and how does it differ from syntax errors?
What is the size of empty structure in c?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What are the advantage of c language?
Explain how can I convert a string to a number?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.