Fill the grid with digits from 1 to n, such that each row and each column contains exactly one of each digit. Put one digit in each half of split cells. Cells correspond to skyscrapers, their height given by the numbers. For split cells, the height is the fraction formed by the two digits.
The numbers outside the grid indicate the number of visible skyscrapers when looking along the corresponding row or column from that point. Skyscrapers are blocked from view by those of equal or greater height.