Skyscrapers Solver
Solve a Skyscrapers puzzle from its edge clues and any given heights.
In Skyscrapers, each cell holds a building whose height is a number from 1 to the grid size, and every row and column holds each height exactly once. A clue outside the grid says how many buildings you can see looking along that row or column, where a taller building hides every shorter one behind it. Type the edge clues around the grid, add any given heights inside, then solve.
Leave a clue blank where the puzzle gives none. Inner cells are optional given heights.
How it works
The grid is a Latin square of building heights: each row and column holds every height from 1 to the grid size exactly once. A building is visible from an edge when it is taller than every building between it and that edge, so the tallest building always hides everything behind it. Each clue fixes how many buildings are visible from its side.
The solver backtracks, filling the most constrained cell first, and prunes a line as soon as the buildings already placed make its clue impossible to reach. It reports when a puzzle has more than one solution.