All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > General
Skyscrapers (Posted on 2005-09-07) Difficulty: 3 of 5
Every square in the diagram below has a building of between 1 and 6 stories, inclusive.

No two buildings in any row or column have the same number of stories. Also, on one of the diagonals, no two buildings have the same number of stories, though the other diagonal has a repeat.

The numbers around the perimeter indicate the number of buildings visible when looking in the direction indicated by the arrow. Note that shorter buildings are not visible if they are behind a taller building. Determine the height of building on each square.

This puzzle was inspired by a puzzle on the Google Puzzle practice exam.

See The Solution Submitted by Bryan    
Rating: 3.7778 (9 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
solution | Comment 11 of 12 |

There are two possible options but in both cases one of the conditions is not satisfied. Dont no what is wrong.

OPTION1

<TABLE borderColor=#070d01 cellSpacing=1 cellPadding=2 width=253 border=1> <TBODY> <TR> <TD width="27%" height=30>

</TD> <TD width="8%" height=30>

5

</TD> <TD width="8%" height=30>

</TD> <TD width="8%" height=30>

</TD> <TD width="8%" height=30>

</TD> <TD width="8%" height=30>

3

</TD> <TD width="8%" height=30>

</TD> <TD width="27%" height=30>

</TD></TR> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

3

</TD> <TD width="27%" height=16>

4

</TD></TR> <TR> <TD width="27%" height=16>

3

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

5

</TD> <TD width="27%" height=16>

</TD></TR> <TR> <TD width="27%" height=16>

6

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

6

</TD> <TD width="27%" height=16>

</TD></TR> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

2

</TD> <TD width="27%" height=16>

4

</TD></TR> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

4

</TD> <TD width="27%" height=16>

</TD></TR> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

1

</TD> <TD width="27%" height=16>

6

</TD></TR> <TR> <TD width="27%" height=41>

</TD> <TD width="8%" height=41>

</TD> <TD width="8%" height=41>

</TD> <TD width="8%" height=41>

</TD> <TD width="8%" height=41>

3

</TD> <TD width="8%" height=41>

</TD> <TD width="8%" height=41>

3

</TD> <TD width="27%" height=41>

</TD></TR></TBODY></TABLE>

OPTION2

<TABLE borderColor=#040d01 cellSpacing=1 cellPadding=2 width=253 border=1> <TBODY> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

</TD> <TD width="8%" height=16>

</TD> <TD width="8%" height=16>

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

</TD> <TD width="27%" height=16>

</TD></TR> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

3

</TD> <TD width="27%" height=16>

4

</TD></TR> <TR> <TD width="27%" height=16>

3

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

5

</TD> <TD width="27%" height=16>

</TD></TR> <TR> <TD width="27%" height=16>

6

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

6

</TD> <TD width="27%" height=16>

</TD></TR> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

2

</TD> <TD width="27%" height=16>

4

</TD></TR> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

1

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

4

</TD> <TD width="27%" height=16>

</TD></TR> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

6

</TD> <TD width="8%" height=16>

5

</TD> <TD width="8%" height=16>

4

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

2

</TD> <TD width="8%" height=16>

1

</TD> <TD width="27%" height=16>

6

</TD></TR> <TR> <TD width="27%" height=16>

</TD> <TD width="8%" height=16>

</TD> <TD width="8%" height=16>

</TD> <TD width="8%" height=16>

</TD> <TD width="8%" height=16>

3

</TD> <TD width="8%" height=16>

</TD> <TD width="8%" height=16>

3

</TD> <TD width="27%" height=16>

</TD></TR></TBODY></TABLE>

But option2 seems to be logical but in this case two sets of buildings in one diagonal has same no of stories.

Option2 would be the solution. Only thing is the diagonal does not have a repeat but two repeats.


  Posted by salil on 2006-02-23 04:10:00
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (1)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2018 by Animus Pactum Consulting. All rights reserved. Privacy Information