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?
Upload a C program to demonstrate the behaviour of the game.
Answer Posted / guest
does each basket have the same number of eggs?
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What are local static variables? How can you use them?
What is equivalent to ++i+++j?
What is the scope of static variable in c?
What is the usage of the pointer in c?
What is double pointer in c?
How can I read data from data files with particular formats?
Explain what are the standard predefined macros?
Can a local variable be volatile in c?
Write a program in c to replace any vowel in a string with z?
How to delete a node from linked list w/o using collectons?
How will you write a code for accessing the length of an array without assigning it to another variable?
What do you mean by Recursion Function?
What is a substring in c?
What are the types of i/o functions?
how many errors in c explain deply