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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dimension

type Dimension string
const (
	X Dimension = "X"
	Y Dimension = "Y"
	Z Dimension = "Z"
)

type Exercise

type Exercise struct {
	common.BaseExercise
}

Exercise for Advent of Code 2023 day 24.

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 Hailstone

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

func (Hailstone) Intersects

func (hs Hailstone) Intersects(hs2 Hailstone) bool

type Vector2D

type Vector2D struct {
	X float64
	Y float64
}

func (Vector2D) Cross

func (v Vector2D) Cross(v2 Vector2D) float64

type Vector3D

type Vector3D struct {
	X float64
	Y float64
	Z float64
}

func (Vector3D) String

func (v Vector3D) String() string

Jump to

Keyboard shortcuts

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