Documentation
¶
Index ¶
- Constants
- type Grid
- func (g *Grid) GetColumnsCount() int
- func (g *Grid) GetRowsCount() int
- func (g *Grid) GetTotalCount() int
- func (g *Grid) GetTreeHeight(row, col int) int
- func (g *Grid) GetTreeScenicScore(row, col int) int
- func (g *Grid) IsAboveOtherTrees(opts *SearchOptions) bool
- func (g *Grid) IsOutOfBounds(row, col int) bool
- func (g *Grid) IsTreeVisible(row, col int) bool
- func (g *Grid) SetTreesHeightAtRow(rowNum int, input string)
- func (g *Grid) UpdateScenicScore(opts *UpdateScenicOptions) int
- type SearchOptions
- type UpdateScenicOptions
Constants ¶
View Source
const ( DIR_UP = "up" DIR_DOWN = "down" DIR_LEFT = "left" DIR_RIGHT = "right" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grid ¶
type Grid [][]int
func (*Grid) GetColumnsCount ¶
func (*Grid) GetRowsCount ¶
func (*Grid) GetTotalCount ¶
func (*Grid) GetTreeHeight ¶
func (*Grid) GetTreeScenicScore ¶
func (*Grid) IsAboveOtherTrees ¶
func (g *Grid) IsAboveOtherTrees(opts *SearchOptions) bool
func (*Grid) IsOutOfBounds ¶
func (*Grid) IsTreeVisible ¶
func (*Grid) SetTreesHeightAtRow ¶
func (*Grid) UpdateScenicScore ¶
func (g *Grid) UpdateScenicScore(opts *UpdateScenicOptions) int
type SearchOptions ¶
type SearchOptions struct {
// contains filtered or unexported fields
}
type UpdateScenicOptions ¶
type UpdateScenicOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.