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

X1X1X Superman,if u on 4 lights,then switches of the
10101 room denoted by X will not be turned on.
X1X1X
10101
X1X1X
.........................................................
U have to on 7 lights

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

11011
01110
11011
01110
11011

Is This Answer Correct ?    37 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 / daniela

1 1 0 0 0
1 1 0 1 1
0 0 1 1 1
0 1 1 1 0
0 1 1 0 1

1 - switch on the light

Is This Answer Correct ?    8 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 / max

00600
10003
00500
20004
00700

Need to switch on 7 lights.

Is This Answer Correct ?    6 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 / pradip biswas

11111
10110
11111
11111
10110


0 indicates rooms you need to switch lights on... Its simple....

Is This Answer Correct ?    2 Yes 0 No

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

Answer / alphy

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

Is This Answer Correct ?    12 Yes 11 No

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

Answer / tirupathi

X1X1X Superman,if u on 4 lights,then switches of the
10101 room denoted by X will not be turned on.
X1X1X
10101
X1X1X
.........................................................
U have to on 7 lights

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

11011
01110
11011
01110
11011


Hi Ananya can you please explain this.

Is This Answer Correct ?    1 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 / sharmesh kumar

Hi Ananya,

I have doubt in your solution as well.

.........................................................
U have to on 7 lights

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

11011
01110
11011
01110
11011

.........................................................
Suppose the room are numbered like
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25

Now,if room no. 3,6,10 were switched-on, this will switch-on
lights in the room (2,8,4);(1,7,11);(5,9,15) in that order
respectively. Now when 13th room light is lit, it will
switch-off the light of room no. 8 as well. So, if we follow
your approach, at last the lights from room no.s 8 & 18 will
be OFF.

Is This Answer Correct ?    1 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 / dolly

7 is the correct answer which is provided by Md.Answer no:5

Is This Answer Correct ?    0 Yes 0 No

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

Answer / pradip biswas

Sorry I did not understand the problem before ... My solution is wrong.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / guest

Switch on the first room light

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Puzzles Interview Questions

1 bird ko fish se pyar ho gaya. wo dono mile to kaise? fish paani ko chhod nahi sakti aur bird paani me ja nahi sakta.

5 Answers   Syscon,


There are 8 coins in a bag . 3 coin weights x kg 3 coins weights y kg 2 coins weights z kg 2 coins weights w kg You have to separate them into separate heaps according to their weights .

1 Answers   Oracle,


A man was looking at a portrait. Someone asked him, "Whose picture are you looking at?" He replied, pointing at the portrait: "Brothers and sisters have I none, but this man's son is my father's son." Now whose picture is the man looking at?

6 Answers   University,


Two planes take off at the same exact moment. They are flying across the Atlantic. One leaves New York and is flying to Paris at 500 miles per hour. The other leaves Paris and is flying to New York at only 450 miles per hour ( because of a strong head wind ). Which one will be closer to Paris when they meet?

18 Answers  


give me an some aptitude question asked on interviews

3 Answers   Satyam,


I can take a bca student instead of you then why should i hire you

10 Answers  


A rich man died. In his will, he has divided his gold coins among his 5 sons, 5 daughters and a manager. According to his will: First give one coin to manager. 1/5th of the remaining to the elder son. Now give one coin to the manager and 1/5th of the remaining to second son and so on..... After giving coins to 5th son, divided the remaining coins among five daughters equally. All should get full coins. Find the minimum number of coins he has?

5 Answers  


One of the four people - Mr. Clinton, his wife Monika, their son Mandy and their daughter Cindy - is a singer and another is a dancer. Mr. Clinton is older than his wife and Mady is older than his sister. 1. If the singer and the dancer are the same sex, then the dancer is older than the singer. 2. If neither the singer nor the dancer is the parent of the other, then the singer is older than the dancer. 3. If the singer is a man, then the singer and the dancer are the same age. 4. If the singer and the dancer are of opposite sex then the man is older than the woman. 5. If the dancer is a woman, then the dancer is older than the singer. Whose occupation do you know? And what is his/her occupation?

2 Answers  


agar aapse wo insaan i love you kahe jis se aap pyar nahi karte to aap uska bina dil dukhaye kya jawab doge?

11 Answers  


My friend collects antique stamps. She purchased two, but found that she needed to raise money urgently. So she sold them for Rs. 8000 each. On one she made 20% and on the other she lost 20%. How much did she gain or lose in the entire transaction?

3 Answers   Wipro,


with heavy raining ,At Midnight 12, aap car lekar ja rahe ho aur bus stand par 3 log (80 years woman , ur best friend , ur lover ) khade he....lekin aap kisi ek ko hi apni car me bitha sakte ho..to aap kya karoge aur kyu ????

5 Answers   Parle, Parle G,


what is the difference between point and dot?

19 Answers   BVC, TCS,


Categories