Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<int[]> Solve(int?[], int?[], int?[], int?[], SolverInstructions)

Declaration

public static IEnumerable<int[]> Solve(
    int?[] topClues,
    int?[] rightClues,
    int?[] bottomClues,
    int?[] leftClues,
    SolverInstructions solverInstructions = null
)

Summary

Returns all solutions to a Skyscraper puzzle with the specified column and row clues.

Parameters

int?[]topClues The column clues along the top edge of the grid, from left to right. Each integer specifies the number of visible skyscrapers in each column. A null value can be used to indicate the absence of a clue.
int?[]rightClues The row clues along the right edge of the grid, from top to bottom.
int?[]bottomClues The column clues along the bottom edge of the grid, from left to right.
int?[]leftClues The row clues along the left edge of the grid, from top to bottom.
SolverInstructionssolverInstructions Instructions to the puzzle solver.