day06

package
v0.0.0-...-9c9a4a3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Race

type Race struct {
	Time     int
	Distance int
}

func ParseSingleRace

func ParseSingleRace(s string) (race Race)

func (Race) DistanceWithPress

func (r Race) DistanceWithPress(press int) int

func (Race) WaysToWin

func (r Race) WaysToWin() (wins int)

type Races

type Races []Race

func ParseRaces

func ParseRaces(s string) (races Races)

func (Races) MarginOfError

func (rs Races) MarginOfError() int

Jump to

Keyboard shortcuts

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