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
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 |
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 |
Answer / max
00600
10003
00500
20004
00700
Need to switch on 7 lights.
| Is This Answer Correct ? | 6 Yes | 3 No |
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 |
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 |
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 |
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 |
Answer / dolly
7 is the correct answer which is provided by Md.Answer no:5
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pradip biswas
Sorry I did not understand the problem before ... My solution is wrong.
| Is This Answer Correct ? | 0 Yes | 0 No |
In one year there are 12 months,so how many years in one month
In a certain year, the number of girls who graduated from City High School was twice the number of boys. If 3/4 of the girls and 5/6 of the boys went to college immediately after graduation, what fraction of the graduates that year went to college immediately after graduation?
You have 2 identical glass bulbs with you. Bulb manufacturer has mentioned that each bulb might withstand a drop of 200 Feet at maximum. Your task is to find the height at which the bulb breaks ofcourse with minimum number of iterations. Assume that you have 200 blocks of 1 foot each which can be stacked one by one to create a 200 Feet structure to carry out the test.
in a family there are 5 members viz. parents and 3 children. the member are A,B,C,D AND E out of which 2 are males and 3 are females. A has 3 childerns, 2 daughters and 1 son. c in B's son. A in D's father. 1.how is E related to B? 2.who is D's mother? give me solution plese.
A boy found that he had a 48 inch strip of paper. He could cut an inch off every second. How long would it take for him to cut 48 pieces? He can not fold the strip and also, can not stack two or more strips and cut them together.
There were N stations on a railroad. After adding X stations 46 additional tickets have to be printed. Find N and X.
Two trains at speed 60 km/hr comes in the opposite direction. At a particular time the distance between the two trains is 18km. A shuttle flies between the trains at the speed of 80 km/hr. At the time the two trains crashes what is the distance traveled by shuttle?
Everyday in his business a merchant had to weigh amounts from 1 kg to 121 kgs, to the nearest kg. What are the minimum number of different weights required and how heavy should they be?
You have 8 coins. 3 of them weigh x units, 3 y units, 1 a units and 1 b units. They are all mixed and look identical. You have to find the lightest coin in minimum number of weighing (balance)
agar mein aapko ek pen gift du aur aapko kahu ki aap us pen se mere haato me kuch likho jo mujhe hamesa yaad rahe to aap kya likhoge?
Four friends - Arjan, Bhuvan, Guran and Lakha were comparing the number of sheep that they owned. It was found that Guran had ten more sheep than Lakha. If Arjan gave one-third to Bhuvan, and Bhuvan gave a quarter of what he then held to Guran, who then passed on a fifth of his holding to Lakha, they would all have an equal number of sheep. How many sheep did each of them possess? Give the minimal possible answer
During a recent school reunion,four men were discussing their starting salaries back in 1962.The salaries in question were 8,10,12 and 14 thousand pounds per year.of course the MP earned the most.Alan earned more thean brain and the doctor earnd more than Derek,the vet.charles could not remember what he started on.Brain,the lawyer,didnot start on 10,000pounds nor did Derek.can you determine who has which job and their starting salaries?