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.