# Skyscraper views

- Difficulty: Beginner · Easy
- On the web: https://blinku.app/learn/skyscraper-view

Read a row or column as building heights and look along it from the clue's end: a taller building hides every shorter one behind it. The clue is how many you can see: from the left, 169782354 shows three, the 1, 6 and 9. A candidate that can't give that count can go.

On a 9×9 board, start with the extremes. Seeing 1 means the nearest cell is the 9; seeing 9 means 1 to 9 in order, nearest first. Seeing 3 means at least two buildings behind the nearest are taller than it, so it is at most 7, and the 9 isn't among the nearest two.

Then go by what's filled. Seeing 2 with a 7 nearest, the first building taller than 7 must be the 9, so the 8 stands behind the 9: the second cell isn't 8, and the farthest isn't 9.

## This example, step by step

Rows and columns are numbered as on the board's left and top: "r2c3" is row 2, column 3. Under the board are the clues drawn on it and written round it, one to a line.

```text
  1 2 3   4 5 6   7 8 9
1 . . . | 7 8 6 | . 1 .
2 . . . | . 9 2 | . . .
3 9 7 . | 3 1 . | 6 . .
  ------+-------+------
4 . . . | . 6 . | . 3 .
5 . . . | . 7 . | . . .
6 . 4 . | . 2 . | . . .
  ------+-------+------
7 . . 7 | . 3 9 | . 8 .
8 . . . | 1 5 8 | . . .
9 . 8 . | . 4 7 | . . .

Skyscraper: 5 seen looking along row 1 from the left
Skyscraper: 4 seen looking along column 3 from the top
Skyscraper: 3 seen looking along row 2 from the right
Skyscraper: 1 seen looking along row 3 from the left
Skyscraper: 2 seen looking along row 3 from the right
Skyscraper: 4 seen looking along row 4 from the left
Skyscraper: 3 seen looking along row 5 from the left
Skyscraper: 1 seen looking along row 6 from the right
Skyscraper: 3 seen looking along row 7 from the right
Skyscraper: 3 seen looking along column 3 from the bottom
Skyscraper: 3 seen looking along column 9 from the bottom
Skyscraper: 2 seen looking along row 9 from the right
```

1. **Where to look**: A pointer first: look along row 3 from row 3, column 9. 2 are seen, so which digits can't fit?
2. **Skyscraper views**: Looking along row 3 from row 3, column 9, 2 are seen. With the row's candidates, 2, 4, 5, and 8 can't give that, so they go.

## In hints

The hint shades the row or column blue, then strikes the candidates that can't give that count.
