Solve Skyscraper Latin Squares from Visibility Totals
Build a Latin square of building heights, scan each skyline from four directions, and use the four outside totals to eliminate every impossible city plan.
Your goal: finish this five-by-five city
Each cell holds one building height. Fill the empty cells with 1–5, once in every row and column, keeping the five given heights. From any edge, a building is visible only if it is taller than every building before it.
The boxed numbers are side totals. For example, the top 10 is the sum of five visibility counts, one for each column viewed from above. It is not the height of one building. Your completed city must give top 10, right 11, bottom 13, and left 12.
- Learn to see and count: Missions 1–4 use a short skyline and a completed 4×4 teaching city. You inspect these examples; they are not the city you must fill.
- Plan the 5×5 solution: Mission 5 returns to the givens above. Missions 6–7 show how trying cases and checking side totals narrows the possibilities.
- Build your city: Mission 8 is the editable 5×5 puzzle. You can attempt it after Mission 5 and return to the case demonstrations if you need help.
Two systems work together
A skyscraper puzzle is not solved by visibility alone. Every row and column must first be a Latin line, and every outside clue must then agree with the view.
The scan rule
The same completed grid is scanned from the top, right, bottom, and left.
Scan one skyline
Interactive skyline scanner
Visibility ledger
Make every row and column Latin
original 4 × 4 building square
Inspect one row or column
Reconstruct Figure 27-20
Click any parenthesized clue
Read the chosen view
The visible buildings set successive records: 1, then 3, then 4.
Filter possible lines by two visibility clues
Visibility-pair laboratory
Why both ends matter
Read the 5 × 5 practice problem
Figure 27-21
What is given?
- Top-left and top-right are 1 and 2.
- The center is 5.
- Bottom-left and bottom-right are 4 and 3.
- Top, right, bottom, and left totals are 10, 11, 13, and 12.
Follow the worked example’s A–F case tree
These six choices form one case (also called a signature). They still allow two different complete Latin grids, because some other cells are not yet fixed. Load this example and use Next completion to compare them. Neither is accepted as the final answer until its side totals have been checked.
Choose the six entries for one case
Current completion
Filter complete Latin squares by side totals
Condition filter
Inspect a remaining candidate
Solve the 5 × 5 practice problem
Editable city plan
Live constraint audit
This count uses all four target totals from the start. It can be 1 while most of your cells are still blank. Mission 7’s count instead changes as totals are applied one at a time.
Incomplete lines display a dash until all five heights are present.