exercises

package
v0.0.0-...-41fa42d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exercise

type Exercise struct {
	common.BaseExercise
}

Exercise for Advent of Code 2023 day 23.

func (Exercise) One

func (e Exercise) One(input string) (any, error)

One returns the answer to the first part of the exercise.

func (Exercise) Two

func (e Exercise) Two(input string) (any, error)

Two returns the answer to the second part of the exercise.

type PathTo

type PathTo struct {
	// contains filtered or unexported fields
}

type Point

type Point struct {
	X int
	Y int
}

func ToLeft

func ToLeft(p Point) Point

func ToRight

func ToRight(p Point) Point

type Tile

type Tile rune
const (
	Path       Tile = '.'
	Forest     Tile = '#'
	SlopeUp    Tile = '^'
	SlopeDown  Tile = 'v'
	SlopeLeft  Tile = '<'
	SlopeRight Tile = '>'
)

type TrailMap

type TrailMap struct {
	Tiles     map[Point]Tile
	Start     Point
	End       Point
	Junctions map[Point]bool
}

Jump to

Keyboard shortcuts

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