Loading problem…
Each grid cell contains a fixed street tile with two connections:
| Tile | Connected directions |
|---|---|
| 1 | left and right |
| 2 | up and down |
| 3 | left and down |
| 4 | right and down |
| 5 | left and up |
| 6 | right and up |
Return whether the streets connect the top-left cell to the bottom-right. Crossing between adjacent cells is allowed only when both tiles connect across their shared edge. You may not rotate or replace tiles. Starting in the destination on a one-cell grid is already a valid route.
Example 1:
Example 2:
Example 3: