Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / lokesh

if the XOR of all the numbers of eggs is zero than second
player win else first player will win.
(From NIM game(game theory))

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a stream?

1080


Is it better to bitshift a value than to multiply by 2?

1054


How is a pointer variable declared?

1027


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1588


Is a house a shell structure?

1110


How can you tell whether two strings are the same?

1206


When can a far pointer be used?

968


What is the advantage of an array over individual variables?

1190


Can you write a programmer for FACTORIAL using recursion?

989


Explain how do you determine the length of a string value that was stored in a variable?

1097


How can I generate floating-point random numbers?

1048


What are external variables in c?

1042


What is static memory allocation? Explain

1037


Is void a keyword in c?

927


What are valid operations on pointers?

1154