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.
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.
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
- Simon Tatham's puzzles: towers.c: the same idea in its Hard solver, described there as exhaustive analysis of a clue
- Conceptis: Skyscrapers techniques: unique skyscraper sequences: a clue leaving one possible order for the remaining heights
- How PencilGrid puzzles are made: the generator and the solver whose run is counted above
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