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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColExpansions

type ColExpansions []int

type DataType

type DataType rune
const (
	Empty  DataType = '.'
	Galaxy DataType = '#'
)

type Exercise

type Exercise struct {
	common.BaseExercise
}

Exercise for Advent of Code 2023 day 11.

func (Exercise) One

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

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

func (Exercise) Two

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

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

type GalaxyMap

type GalaxyMap map[Point]*GalaxyObject

type GalaxyObject

type GalaxyObject struct {
	ID  string
	Pos Point
}

type MapCols

type MapCols map[int][]*GalaxyObject

type MapRows

type MapRows map[int][]*GalaxyObject

type Point

type Point struct {
	X int
	Y int
}

type RowExpansions

type RowExpansions []int

Jump to

Keyboard shortcuts

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