d11

package
v0.0.0-...-3cf76cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SolvePart1

func SolvePart1(spots Spots) (int, error)

SolvePart1 ..

func SolvePart2

func SolvePart2(spots Spots) (int, error)

SolvePart2 ..

Types

type Spot

type Spot int

Spot ..

type Spots

type Spots [][]Spot

Spots ..

func ParseInput

func ParseInput(f []byte) (Spots, error)

ParseInput .

func (Spots) Count

func (s Spots) Count(t Spot) int

Count ..

func (Spots) ShouldFlip

func (s Spots) ShouldFlip(r, c int) (bool, error)

ShouldFlip ..

func (Spots) ShouldFlipButInRetardMode

func (s Spots) ShouldFlipButInRetardMode(r, c int) (bool, error)

ShouldFlipButInRetardMode ..

func (Spots) ValidCoordinate

func (s Spots) ValidCoordinate(r, c int) bool

ValidCoordinate ..

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL