there are N number of matchboxes numbered 1...N.each
matchbox contain various number of stick.Two player can
alternatevely pick some amount of stick from the higest
stick containing box . The player is condidered win if
there is no stick after his move.Find the final move so
that the move player win.

Note:In case the number of stick is equal ,pick the stick
from the higest numbered box.



eg: 3 box contain stick as:1,1,1.

if u take 1 stick from 3rd numbred box you will any how win
the match.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Languages AllOther Interview Questions

you have a computer with 80GB hard disk and ubuntu 8.04 is installed on entire hard disk.now you have to create a seprate partition for windows OS and install win XP as dual boot.write down the steps involved along with the commands

1 Answers   Anand Group, Indian Navy, TCS,


iam confused to choose among testing, .net and java can anybody help me????????

0 Answers  


What is the entry point function of a DLL?

0 Answers   Wipro,


in a company 30% are supervisors and 40% employees are male if 60% of supervisors are male. what is the probability that a randomly choosen employee is a male or female?need steps to solve this?

1 Answers   TCS,


what are the top level class of interface in java?

2 Answers   Satyam,






Write a program to swap the content of two variables without using a third variable.

0 Answers   Zensar,


in IBM PC -AT.WAT AT REFERS TO?

0 Answers   IBM,


What r the attributes using in Win Runner?

0 Answers   Tavant Technologies,


I need source code for Enrollment System using Visual Basic 6.0/2008 database MS Access 2007 for my school thesis project...please help me..kindly send in my email jpinedamcp@gmail.com

0 Answers  


While joining files if only two files are mentioned with jfile keyword, do we required to use join keyword????

2 Answers  


How same session variable can be used in both Asp and Asp.net?

1 Answers   Wipro,


what is the software to run the GSM gate opener program

0 Answers  


Categories