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...


In a kingdom far far away, the King decided that the time
has come to find a husband for his princess daughter. The
King wanted to find a worthy lad for his princess, so he
promised to give his daughter away to the first young (or
old) man who would solve the puzzle that has stumped the
best of his court mathematicians for years. The puzzle is
very simple: in a palace, there are 25 rooms arranged in a
square--5 rows of rooms with 5 rooms in each row. In every
room there is a light switch which not only switches on/off
the light in that room, but also switches the lights in the
adjacent rooms--the room to the right, to the left, the
room above and the room below. Initially, all of the
lights are turned off. The goal is to turn the lights on
in every room of the palace.

Answers were Sorted based on User's Feedback



In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / sajjad

10110
11111
11111
01101
11111

0 - room to switch on the light.

Now where is the princess. :)

Is This Answer Correct ?    0 Yes 1 No

In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / andy

01101
01110
00111
11011
11000

... and rotations of this.

The problem can be written as a system of 25 equations in 25
unknown over the field Z mod two, and then solved using
linear algebra (hopefully with the aid of a computer).

Is This Answer Correct ?    3 Yes 5 No

In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / guest

just switch on the 5 lights in the rooms to the right

Is This Answer Correct ?    3 Yes 5 No

In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / govind

SWitch ON light frm the 13 room, it will switches light frm
al other adjacen ROOMS .... Imagine it....
00000
00000
00000
00000
00000
0-> Indicates the ROOMS
go & switch on frm 3rd row n 3rd column light..

Is This Answer Correct ?    1 Yes 3 No

In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / mihir gupta

you have to switch on 9 lights....

Is This Answer Correct ?    0 Yes 2 No

In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / md

f6b2b
gfabc
7a1a3
geadc
e5d4d

1,2,3,4,5,6,7 indicate switch-rooms in order of switching
on their switches.
a corresponds to adjuscent rooms which lit due to step 1
b corresponds to adjuscent rooms which lit due to step 2
....
g corresponds to adjuscent rooms which lit due to step 7

Is This Answer Correct ?    4 Yes 7 No

In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / manish verma

Only 1 light needs to be switched ON, & it will switch on
the rest of the lighhts.

Is This Answer Correct ?    2 Yes 5 No

In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / pooja devraj

only 1 light need to switch on, gradually the remaining all
will become on.

1 0 0 0 0
0 0 0 0 0
0 0 0 0 0---->
0 0 0 0 0
0 0 0 0 0

1 1 0 0 0
1 0 0 0 0
0 0 0 0 0---->
0 0 0 0 0
0 0 0 0 0

1 1 1 0 0
1 1 0 0 0
1 0 0 0 0----> like this
0 0 0 0 0
0 0 0 0 0



this is the answer given by "ALPHY"

tz an excellent answer..

i agree....

bt litting frm room one takes a long tym to lite up all 25
rooms..

so to save time lets lit up the room at the center

y waste its advantage like it can lite its adjacent rooms..

quiet quick ryt.


SO.............


it can also be as...


0 0 0 0 0
0 0 0 0 0
0 0 1 0 0---->
0 0 0 0 0
0 0 0 0 0


0 0 0 0 0
0 0 1 0 0
0 1 1 1 0---->
0 0 1 0 0
0 0 0 0 0


0 0 1 0 0
0 1 1 1 0
1 1 1 1 1---->
0 1 1 1 0
0 0 1 0 0

0 1 1 1 0
1 1 1 1 1
1 1 1 1 1---->
1 1 1 1 1
0 1 1 1 0

1 1 1 1 1
1 1 1 1 1
1 1 1 1 1---->
1 1 1 1 1
1 1 1 1 1



ryt?? :)

Is This Answer Correct ?    3 Yes 6 No

In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / siva

in 4 rooms the lights are made on

Is This Answer Correct ?    2 Yes 9 No

In a kingdom far far away, the King decided that the time has come to find a husband for his princ..

Answer / superman

U have to on 4 light only.

The room of which light need to on is indicated by 0,

11111
10101
11111
10101
11111

Is This Answer Correct ?    2 Yes 13 No

Post New Answer

More Puzzles Interview Questions

the age of baby will b 5 time after 20 yrs what is present age?

14 Answers  


I have two coins for 75 paise.1 coin is not 50 paise, how?

41 Answers   HCL, Infosys, KI, SNS International,


I'm something, i appear twice in a week but none in a day.I appear once in a year but none in a month. what am i?

6 Answers   Oliver,


wo kya cheez hai jo saal me 1 baar mahine me 2 baar hafte me 4 baar aur din me 6 baar aati hai

39 Answers   AAA, Global Systems, Google, Human Resources, Infosys, IOCL, Matter and Co, Mind Tree, Prakash Industries, Samsung, Serco, Shani, Shreya Garments, Suman Industries, TNT, VIP, WhatsApp, YDS,


Kate, Demi, Madona, Sharon, Britney and Nicole decided to lunch together in a restaurant. The waiter led them to a round table with six chairs. How many different ways can they seat?

2 Answers  


name the cities which consist of a fruit name in its starting?

5 Answers  


can anyone help me out in solving the following puzzle "i live in water,if you cut my head i am at your door,if you cut my tail i am a fuit,if you cut both,i am in you"

11 Answers   CTS, ESEC, TCS, Wipro,


There are 3 lights (in one room) and 3 swtiches (in another room), one for each, if you only enter into the light room once. How can you find out which switch corresponds to which light?

12 Answers   Lucent,


A positive integer that, when added to 1000 gives a sum which is greater than when multiplied by 1000. Find the positive integer.

6 Answers   DELL,


7 dogs have got 7 puppies each.Each puppy got 7 kittens as friends.They are all members of a club along with me.What is the strength of the club?

31 Answers  


In one year there are 12 months,so how many years in one month

7 Answers  


7) Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. If Jane wears black shoes she will not wear: a) red stockings. b) a blue skirt. c) a white blouse. d) blue stockings. e) a sky blue blouse. 8) Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. If Jane is color blind and is unable to determine what outfits went well together, how many possible clothing combinations could she have? a) 24 b) 32 c) 36 d) 44 e) 48 9) Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. If Jane wears a brown skirt and a white blouse, she could: a) not wear blue stockings. b) not wear brown shoes. c) not wear black shoes. d) wear blue stockings. e) wear red stockings. 10) Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. Jane buys a gray scarf. If she wears the new scarf, then she could: a) not wear blue stockings. b) not wear brown stockings. c) not wear black shoes. d) wear a white blouse. e) wear black stockings. 11) Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. Jane will never wear: a) blue and red together. b) white and red together. c) gray and blue together. d) white and black together. e) white and red together.

1 Answers   Accenture,


Categories