Each row or column contains skyscrapers of different height (from 1 to n) and one empty field; numbers outside the grid indicate how many skyscrapers are visible from that direction.