shivraj

2 years ago

Buildings on Color Street are numbered from 1 to 5. Each building is colored with one of the following colors: blue, red, yellow, pink, and green. It is known that: - The red building neighbours with the blue one only. - The blue building is between the red one and the green one. What is the color of the building numbered with 3?

well red is an end...as it has only 1 neighbour
doesn't matter which end...
so the arrangements are
R B G ? ? or ? ? G B R
1 2 3 4 5 1 2 3 4 5
same result no matter which end the red house is... green is the 3