day13

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1(g Grid, folds []string) (int, error)

func Part2

func Part2(g Grid, folds []string) (string, error)

Part2 assumes Part1 was already called on the same Grid.

Types

type Grid

type Grid map[advent2021.XY]struct{}

func NewGrid

func NewGrid(coordinates []string) (Grid, error)

func (Grid) FoldX

func (g Grid) FoldX(val int)

func (Grid) FoldY

func (g Grid) FoldY(val int)

func (Grid) String

func (g Grid) String() string

Jump to

Keyboard shortcuts

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