Skip to content
PencilGrid

Skyscrapers technique · Easy

Height Limit

A Skyscrapers height limit is the tallest building a clue allows in a cell near it. Beside a clue of k on an N×N grid the cell holds at most N − k + 1, and each cell further along the line may be one taller. It is the first step that removes candidates instead of placing a height, and the last step an Easy grid can need.

Published

Why It Works

Put a building of height h somewhere in a line and ask how many buildings the clue could then see. In front of it are d cells, and at best all d show. The building itself may show. Behind it, only buildings taller than h can show, and there are N − h of those. So the clue sees at most d + 1 + (N − h) buildings.

A clue of k needs that total to reach k, which gives h ≤ N − k + 1 + d. In the cell next to the clue d is 0, so the cap is N − k + 1. One cell in, it is N − k + 2, and so on until the cap reaches N and stops mattering. On a 5×5 a clue of 4 allows at most 2 in the first cell, 3 in the second and 4 in the third.

Worked Example on a Medium 5×5

This 5×5 was produced by the daily generator. Five hints have placed a 5 in every row, and the next nine are all Height Limits. Take the 4 left of row 4. Nothing stands in front of row 4 column 1, so it can be at most 2, and one building at most stands in front of row 4 column 2, so that cell can be at most 3. The 4 below column 1 caps row 5 column 1 at 2 in the same way, which is tighter than the cap of 3 that the 3 left of row 5 gives the same cell.

A 5 by 5 Skyscrapers grid with a 5 in every row; the 4 left of row 4 and the 4 below column 1 are highlighted and three cells near them carry capped notesThe clues read 2, 3, 1, 3, 3 along the top, 4, 2, 3, 2, 1 along the bottom, 2, 1, 2, 4, 3 down the left and 2, 2, 3, 2, 1 down the right. Fives stand in row 1 column 3, row 2 column 1, row 3 column 2, row 4 column 4 and row 5 column 5. Row 4 column 1 is outlined with the notes 1 and 2, row 4 column 2 with 1, 2 and 3, and row 5 column 1 with 1 and 2.23133252152253412123523125142321
Height Limit: a clue of 4 on a 5×5 allows at most 2 beside it and at most 3 one cell further in.

Worked Example: the Caps Leave One Home

Caps rarely place a height themselves. They empty cells until a single appears. Three of the clues above this grid are 3s, over columns 2, 4 and 5, and each keeps the 4 out of the top cell of its column. Row 1 already has its 5 in column 3, so after those three caps the 4 of row 1 has one cell left: row 1 column 1. That placement is a Hidden Single, the fifteenth hint, and it is the first height the grid gains after the 5s.

The same grid with the three 3s above columns 2, 4 and 5 highlighted, notes 1, 2 and 3 in the top cells of those columns, and a 4 placed in row 1 column 1Row 1 reads: a 4 outlined in column 1, notes 1 2 3 in column 2, the 5 in column 3, and notes 1 2 3 in columns 4 and 5. The clues of 3 above columns 2, 4 and 5 are highlighted, since each keeps a 4 out of the cell below it.23133241235123123215225345235142321
Hint 15, Hidden Single: three caps leave the 4 of row 1 only its first cell.

How to Apply It Quickly

Work round the edge once and write the cap into the first cell or two of every clued line. You only need the small subtraction for the nearest cell; each cell after it gets one more. A clue of 1 caps nothing, and a clue of 2 only keeps the tallest height out of the nearest cell. The clues worth your attention are the large ones, because a clue one short of the grid size caps almost the whole line.

Then read each cap against the one coming from the other direction. A corner cell sits beside two clues and takes the smaller cap, as row 5 column 1 did above. A cell in the middle of a line can be capped from both ends of its row and both ends of its column, and the tightest of the four is the one that counts.

Common Mistakes

  • Counting the distance from the wrong end. The cap belongs to the clue's own side: the nearest cell is the one touching that clue.

  • Treating the cap as the answer. A cap of 3 means 1, 2 or 3; it places nothing until the row or column narrows it further.

  • Skipping a clue because its line already has the tallest building. The cap still applies to every cell in front of that building.

Frequently Asked Questions

What is a height limit in Skyscrapers?

It is the largest height a clue permits in a cell. For a clue of k on an N×N grid the nearest cell is at most N − k + 1 and each cell beyond it one more, because a taller building there would hide too many others.

Does a clue of 2 limit any heights?

Only one. A clue of 2 keeps the tallest height out of the cell next to it, since a tallest building there would be the only one visible. Every other cell of the line keeps all its candidates.

Do easy Skyscrapers puzzles need height limits?

About two in three do. Of the 148 Easy 4×4 grids our generator made for a 520-day batch, 97 needed at least one Skyscrapers height limit, and all 222 Medium 5×5 grids did, a median of eight times each.

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