d5

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(seats []*Seat) int

SolvePart1 ..

func SolvePart2

func SolvePart2(seats []*Seat) int

SolvePart2 ..

Types

type Seat

type Seat struct {
	Row, Column int
}

Seat ..

func DecodeOne

func DecodeOne(s string) (*Seat, error)

DecodeOne ..

func ParseInput

func ParseInput(f []byte) ([]*Seat, error)

ParseInput ..

func (*Seat) ID

func (s *Seat) ID() int

ID ..

Jump to

Keyboard shortcuts

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