day04

package
v0.0.0-...-acf6961 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BoardDimension = 5

Variables

This section is empty.

Functions

func Part1

func Part1(drawOrder []int, boards []Board) (int, error)

func Part2

func Part2(drawOrder []int, boards []Board) (int, error)

Types

type Board

type Board [][]int

func ParseInput

func ParseInput(groups [][]string) (draw []int, boards []Board, err error)

func (Board) IsWon

func (b Board) IsWon(draw map[int]struct{}) bool

func (Board) SumUnmarked

func (b Board) SumUnmarked(draw map[int]struct{}) int

Jump to

Keyboard shortcuts

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