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

How are strings stored in c?

1081


can anyone suggest some site name..where i can get some good data structure puzzles???

2161


What is meant by realloc()?

1204


How is null defined in c?

1205


What is meant by initialization and how we initialize a variable?

1096


Explain output of printf("Hello World"-'A'+'B'); ?

1561


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6961


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2187


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1481


Explain high-order bytes.

1181


What does the c in ctime mean?

1161


Explain the difference between ++u and u++?

1188


Is there any data type in c with variable size?

1150


Why is not a pointer null after calling free?

1077


Explain union.

1238