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 |
I can take a bca student instead of you then why should i hire you
1)You take a test, and 60% pass the first time and 40% fail. The second time around,80% pass the test and 20% fail. The third time, 90% pass and 10% fail. a. What is the probability that you pass on the 2nd time? b. What is the probability that you pass on the 3rd time? c. What is the probability you fail?
Karan bought a little box of midget matches, each one inch in length. He found that he could arrange them all in the form of a triangle whose area was just as many square inches as there were matches. He then used up six of the matches, and found that with the remainder he could again construct another triangle whose area was just as many square inches as there were matches. And using another six matches he could again do precisely the same. How many matches were there in the box originally? Note that the match-box can hold maximum of 50 matches.
You have a sheet cake. There is a rectangular piece missing from the inside of the sheet cake. The location of the missing piece is arbitrary. I was told I could assume I had the means to make the cuts. How do you divide the sheet cake into 2 even proportions with 2 cuts?
15 Answers College School Exams Tests, Global Analytics, Google, Infosys, Oracle,
Q. Right to information flows from which of the following Articles: (a) Articles 19 & 20 (b) Articles 21 & 22 (c) Articles 19 & 21 (d) Articles 14 & 19
Given the following facts: 1. Dinesh is younger than Farukh and older than Gurmit. 2. Jatin is younger than Chandu and older than Eshrat. 3. Amit is younger than Irfan and older than Chandu. 4. Farukh is younger than Bhavin and older than Hemant. 5. Irfan is younger than Gurmit and older than Jatin. 6. Hemant is older than Gurmit. Who is the Youngest?
Two identical pack of cards A and B are shuffled thoroughly. One card is picked from A and shuffled with B. The top card from pack A is turned up. If this is the Queen of Hearts, what are the chances that the top card in B will be the King of Hearts?
Consider a number 235, where last digit is the sum of first two digits i.e. 2 + 3 = 5. How many such 3-digit numbers are there?
There are 8 stones which are similar except one which is heavier than the others. To find it, you are given a pan balance. What is the minimal number of weighing needed to find out the heaviest stone ?
When Alexander the Great attacked the forces of Porus, an Indian soldier was captured by the Greeks. He had displayed such bravery in battle, however, that the enemy offered to let him choose how he wanted to be killed. They told him, "If you tell a lie, you will put to the sword, and if you tell the truth you will be hanged." The soldier could make only one statement. He made that statement and went free. What did he say?
Tic-Tac-Toe is being played. One 'X' has been placed in one of the corners. No 'O' has been placed yet. Where does the player that is playing 'O' has to put his first 'O' so that 'X' doesn't win? Assume that both players are very intelligent. Explain your answer
Three men - Sam, Cam and Laurie - are married to Carrie, Billy and Tina, but not necessarily in the same order. Sam's wife and Billy's Husband play Carrie and Tina's husband at bridge. No wife partners her husband and Cam does not play bridge. Who is married to Cam?