Skyscrapers

Skyscrapers is a classic logic puzzle invented by Masanori Natsuhara (Japan) in 1992, originally published in Puzzler magazine under the title ビルディングシティパズル (Building City Puzzle).
In this puzzle, each row and column must contain all building heights without repetition. Numbers placed around the grid indicate how many buildings are visible when looking from that side: taller buildings hide shorter ones behind them. The puzzle combines Latin-square structure with a visibility constraint, offering clear rules and elegant deductive logic that has inspired numerous variants.

Rules

Insert a digit from 1 to 5 into every cell, so that each digit appears once in each row and column . Each digit in a cell represents the height of a building. Numbers outside the grid indicate how many buildings a distant observer could see (at least part of) in that row or column. A building will hide any shorter buildings behind it.

Click to see the answer.