Skip to content
PencilGrid

Skyscrapers technique · Medium

Visibility Count

A Skyscrapers visibility count is a list of every way a row or column can still be filled, checked against the clues at its ends. A height that none of the fitting arrangements puts in a cell is removed from that cell. Needing this step even once is what makes a grid Medium.

Published

Why It Works

A finished line is some ordering of the heights 1 to N, and the true ordering is one of the arrangements still allowed by the candidates in its cells. It also shows the clued number of buildings from each clued end. So the truth is somewhere in the list of arrangements that pass both tests. If no arrangement in that list has a 4 in a certain cell, the truth does not either.

The step uses everything the clue and the notes can say about one line, and it is all counting. The engine reads the clued line with the fewest fitting arrangements first, since that is the one a person can list on paper, and it leaves lines without a clue to the pair techniques.

Worked Example: Two Cells, Two Orders

The grid is the same kind of Medium 5×5 our daily generator makes, sixteen hints in. Column 1 reads 4, 5, 3 from the top and its last two cells hold 1 and 2 in some order. The clue below the column is 4. With 1 above 2, the view from the bottom is 2, then 3, then 5: three buildings. With 2 above 1 it is 1, 2, 3, 5: four. Only the second order fits, so row 4 column 1 cannot be 1. The hint removes it, and the next two hints place the 2 and the 1.

A 5 by 5 Skyscrapers grid whose first column reads 4, 5, 3 and then two cells with the notes 1 and 2; the clues above and below the column are highlightedColumn 1 holds a 4 in row 1, a 5 in row 2 and a 3 in row 3. Rows 4 and 5 of the column are outlined, each with the notes 1 and 2. The 2 above the column and the 4 below it are highlighted. Fives stand in every other row as well.2313324521522353412523125142321
Hint 17, Visibility Count: of the two orders left for column 1, only 2 above 1 shows four buildings from below.

Worked Example: One Arrangement Left in a Row

Three hints later the same idea settles a whole row. Row 4 now reads 2, blank, blank, 5, blank, and its clues are 4 from the left and 2 from the right. The heights 1, 3 and 4 are still to place. Four buildings must show from the left and the 5 in column 4 is the last of them, so the 2 and both cells between it and the 5 must all show: the row has to climb 2, 3, 4, 5. The 1 goes in the last cell, and from the right you see it and then the 5, which matches the 2. One arrangement fits where the notes alone allowed several.

The same grid with column 1 complete; row 4 reads 2, two noted cells, 5 and a noted cell, and the clues at both ends of the row are highlightedColumn 1 now reads 4, 5, 3, 2, 1. In row 4 the 2 is followed by a cell with the notes 1 and 3, a cell with the notes 1, 3 and 4, the 5, and a cell with the notes 1, 3 and 4. The 4 left of the row and the 2 right of it are highlighted.2313324521522353421313451342315142321
Hints 20 to 24, Visibility Count: a clue of 4 with the 5 in the fourth cell forces 2, 3, 4, 5, 1.

How to Count Without Listing Everything

Find the tallest building of the line first, or the cells it could be in. Nothing behind it counts, so the clue is decided entirely by the cells in front of it. If the clue is 2, everything between the clue and the tallest building must be shorter than the first cell. If the clue equals the number of cells up to and including the tallest building, those cells must rise in order.

Choose lines with two or three empty cells. Two cells have two orders and three have six, which is quick to check by eye. A line with four or five empty cells is rarely the place to start, and by the time the short lines are done it usually has fewer.

Common Mistakes

  • Counting from the wrong end. Read the left clue walking right and the right clue walking left; the same row gives two different numbers.

  • Forgetting the notes. An arrangement only counts if every cell can still hold the height it gives that cell.

  • Checking one clue and stopping. When a line has a clue at both ends, an arrangement must match both to stay in the list.

Frequently Asked Questions

What is a visibility count in Skyscrapers?

It is the step where you write out the orders a row or column can still take and keep only those that show the clued number of buildings. Any height that no surviving order puts in a cell is struck from that cell.

When should I list the arrangements of a line?

When the clue rules and singles have stopped giving anything. Pick the clued line with the fewest empty cells: two empty cells mean two orders to test, three mean six.

Do all Skyscrapers puzzles need a visibility count?

No. An Easy grid never does. Across 520 days of generated dailies, each of the 222 Medium grids used a Skyscrapers visibility count between 1 and 15 times, and a Hard 6×6 used one a median of 19 times.

Sources

Sources last checked on 2026-11-15.

Written and checked by the maker of PencilGrid, a puzzle enthusiast and software engineer who also builds the generator and solver behind every grid on the site.

Every technique on this page is one the site's solver actually uses: puzzles are generated offline, checked for a single solution, and graded by the hardest step they need. How PencilGrid puzzles are made →

More Skyscrapers Pages

Related puzzles: Futoshiki · Mini Sudoku · Sudoku

Keep Learning